CVE-2020-12278: An issue was discovered in libgit2 before 0.28.4 and 0.9x before 0.99.0
CVE-2020-12278 is a critical-severity flaw (CVSS 9.8) affecting libgit2, debian linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
An issue was discovered in libgit2 before 0.28.4 and 0.9x before 0.99.0. path.c mishandles equivalent filenames that exist because of NTFS Alternate Data Streams. This may allow remote code execution when cloning a repository. This issue is similar to CVE-2019-1352.
Why this priority
- Critical severity
- EPSS top 7%: very likely to be exploited
- Remotely exploitable, no login, no user action
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 5.2% (top 7%) |
| CISA exploited list | No |
| Weakness | CWE-706 |
| Published | 2020-04-27 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2020-12278?
libgit2: upgrade to 0.28.4; debian linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2020-12278 being exploited?
CVE-2020-12278 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2020-12278 affect?
CVE-2020-12278 affects libgit2, debian linux. Severity is critical (CVSS 9.8). An issue was discovered in libgit2 before 0.28.4 and 0.9x before 0.99.0. path.c mishandles equivalent filenames that exist because of NTFS Alternate Data Streams. This may allow remote code execution when cloning a repository. This issue is
How urgent is CVE-2020-12278?
Priority 67/100. Critical severity; EPSS top 7%: very likely to be exploited; Remotely exploitable, no login, no user action; On your watchlist
Software pages
Related CVEs
- CVE-2024-24577 HIGH 8.6 UPGRADE libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API
- CVE-2024-24575 HIGH 7.5 UPGRADE libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API
- CVE-2023-22742 MEDIUM 5.3 UPGRADE libgit2 is a cross-platform, linkable library implementation of Git
- CVE-2020-12279 CRITICAL 9.8 UPGRADE MITIGATE An issue was discovered in libgit2 before 0.28.4 and 0.9x before 0.99.0
- CVE-2018-8099 MEDIUM 6.5 UPGRADE MITIGATE Incorrect returning of an error code in the index.c:read_entry() function leads to a double free in libgit2 be