libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality in...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:Pro:14.04:LTSlibgit2 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSlibgit2 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSlibgit2 |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSlibgit2 |
< 0.28.4+dfsg.1-2ubuntu0.1+esm1→ 0.28.4+dfsg.1-2ubuntu0.1+esm1 |
0.28.4+dfsg.1-2ubuntu0.1+esm1 |
| Ubuntu:Pro:22.04:LTSlibgit2 |
< 1.1.0+dfsg.1-4.1ubuntu0.1+esm1→ 1.1.0+dfsg.1-4.1ubuntu0.1+esm1 |
1.1.0+dfsg.1-4.1ubuntu0.1+esm1 |
| Ubuntu:24.04:LTSlibgit2 |
< 1.7.2+ds-1ubuntu3.1→ 1.7.2+ds-1ubuntu3.1 |
1.7.2+ds-1ubuntu3.1 |
| Ubuntu:26.04:LTSlibgit2 |
< 1.9.1+ds-1ubuntu1.1→ 1.9.1+ds-1ubuntu1.1 |
1.9.1+ds-1ubuntu1.1 |
Original description The description as published by the source.
libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Prior to 1.8.6 and 1.9.5, libgit2 does not reject traversal components in a submodule path loaded from .gitmodules. The affected src/libgit2/submodule.c paths include git_submodule_lookup and git_submodule_add_setup. A crafted repository can specify a path such as ../escape-target, and applications that initialize the submodule can create directories outside the repository working tree. This issue is fixed in versions 1.8.6 and 1.9.5.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory ubuntu.com
- report ubuntu.com
- report cve.org
- report github.com