CVE-2020-12279 An issue was discovered in libgit2 before 0.28.4 and 0.9x before 0.99.0. checkout.c mishandles equivalent filenames that exist because of NTFS short names. This may allow remote code execution when cl...
CriticalCVSS 9.8
EPSS 5.1%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
An issue was discovered in libgit2 before 0.28.4 and 0.9x before 0.99.0. checkout.c mishandles equivalent filenames that exist because of NTFS short names. This may allow remote code execution when cloning a repository. This issue is similar to CVE-2019-1353.
Upgrade path
8 packages: 6 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/libgit2(Ubuntu Pro 14.04) | = 0.19.0-2; = 0.19.0-2ubuntu0.4; = 0.19.0-2ubuntu0.4+esm1; = 0.19.0-2ubuntu0.4+esm2 +1 more | No fix listed | No fix yet |
| debian/libgit2(Debian 12) | < 0.28.4+dfsg.1-2 | 0.28.4+dfsg.1-2 | Fixed |
| debian/libgit2(Debian 13) | < 0.28.4+dfsg.1-2 | 0.28.4+dfsg.1-2 | Fixed |
| debian/libgit2(Debian 14) | < 0.28.4+dfsg.1-2 | 0.28.4+dfsg.1-2 | Fixed |
| libgit2 | < 0.28.4 | 0.28.4 | Fixed |
| ubuntu/libgit2(Ubuntu Pro 16.04) | < 0.24.1-2ubuntu0.2+esm2; = 0.22.2-2; = 0.23.1-1; = 0.24.1-2 +2 more | 0.24.1-2ubuntu0.2+esm2 | Fixed |
| ubuntu/libgit2(Ubuntu Pro 18.04) | < 0.26.0+dfsg.1-1.1ubuntu0.2+esm1; = 0.25.1+really0.24.6-1; = 0.26.0+dfsg.1-1.1; = 0.26.0+dfsg.1-1.1build1 +1 more | 0.26.0+dfsg.1-1.1ubuntu0.2+esm1 | Fixed |
| debian linux | = 9.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libgit2(Debian:12) | < 0.28.4+dfsg.1-2 | 0.28.4+dfsg.1-2 |
| debian/libgit2(Debian:13) | < 0.28.4+dfsg.1-2 | 0.28.4+dfsg.1-2 |
| debian/libgit2(Debian:14) | < 0.28.4+dfsg.1-2 | 0.28.4+dfsg.1-2 |
| libgit2 | < 0.28.4 | 0.28.4 |
| debian linux | = 9.0 | No fix listed |
| ubuntu/libgit2(Ubuntu:Pro:14.04) | All versions | No fix listed |
| ubuntu/libgit2(Ubuntu:Pro:14.04) | = 0.19.0-2 | No fix listed |
| ubuntu/libgit2(Ubuntu:Pro:14.04) | = 0.19.0-2ubuntu0.4 | No fix listed |
| ubuntu/libgit2(Ubuntu:Pro:14.04) | = 0.19.0-2ubuntu0.4+esm1 | No fix listed |
| ubuntu/libgit2(Ubuntu:Pro:14.04) | = 0.19.0-2ubuntu0.4+esm2 | No fix listed |
| ubuntu/libgit2(Ubuntu:Pro:16.04) | < 0.24.1-2ubuntu0.2+esm2 | 0.24.1-2ubuntu0.2+esm2 |
| ubuntu/libgit2(Ubuntu:Pro:16.04) | = 0.22.2-2 | No fix listed |
| ubuntu/libgit2(Ubuntu:Pro:16.04) | = 0.23.1-1 | No fix listed |
| ubuntu/libgit2(Ubuntu:Pro:16.04) | = 0.24.1-2 | No fix listed |
| ubuntu/libgit2(Ubuntu:Pro:16.04) | = 0.24.1-2ubuntu0.2 | No fix listed |
| ubuntu/libgit2(Ubuntu:Pro:16.04) | = 0.24.1-2ubuntu0.2+esm1 | No fix listed |
| ubuntu/libgit2(Ubuntu:Pro:18.04) | < 0.26.0+dfsg.1-1.1ubuntu0.2+esm1 | 0.26.0+dfsg.1-1.1ubuntu0.2+esm1 |
| ubuntu/libgit2(Ubuntu:Pro:18.04) | = 0.25.1+really0.24.6-1 | No fix listed |
| ubuntu/libgit2(Ubuntu:Pro:18.04) | = 0.26.0+dfsg.1-1.1 | No fix listed |
| ubuntu/libgit2(Ubuntu:Pro:18.04) | = 0.26.0+dfsg.1-1.1build1 | No fix listed |
| ubuntu/libgit2(Ubuntu:Pro:18.04) | = 0.26.0+dfsg.1-1.1ubuntu0.2 | No fix listed |
References
- Debian Security Tracker CVE-2020-12279 vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com patch third-party-advisory
- github.com issue-tracking release-notes third-party-advisory
- github.com issue-tracking release-notes third-party-advisory
- [debian-lts-announce] 20220321 [SECURITY] [DLA 2936-1] libgit2 security update mailing-list third-party-advisory
- [debian-lts-announce] 20230223 [SECURITY] [DLA 3340-1] libgit2 security update mailing-list
- ubuntu.com issue-tracking
- ubuntu.com vendor-advisory
- www.cve.org issue-tracking