CVE-2018-8099: Incorrect returning of an error code in the index.c:read_entry() function leads to a double free in libgit2 be
CVE-2018-8099 is a medium-severity flaw (CVSS 6.5) affecting libgit2, debian linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Incorrect returning of an error code in the index.c:read_entry() function leads to a double free in libgit2 before v0.26.2, which allows an attacker to cause a denial of service via a crafted repository index file.
Why this priority
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 6.5 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 1.4% (top 28%) |
| CISA exploited list | No |
| Weakness | CWE-415 |
| Published | 2018-03-14 |
| 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-2018-8099?
libgit2: upgrade to 0.26.2; debian linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2018-8099 being exploited?
CVE-2018-8099 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-2018-8099 affect?
CVE-2018-8099 affects libgit2, debian linux. Severity is medium (CVSS 6.5). Incorrect returning of an error code in the index.c:read_entry() function leads to a double free in libgit2 before v0.26.2, which allows an attacker to cause a denial of service via a crafted repository index file.
How urgent is CVE-2018-8099?
Priority 46/100. 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-2020-12278 CRITICAL 9.8 UPGRADE MITIGATE An issue was discovered in libgit2 before 0.28.4 and 0.9x before 0.99.0