CVE-2024-24577: libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API
CVE-2024-24577 is a high-severity flaw (CVSS 8.6) affecting libgit2. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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. Using well-crafted inputs to `git_index_add` can cause heap corruption that could be leveraged for arbitrary code execution. There is an issue in the `has_dir_name` function in `src/libgit2/index.c`, which frees an entry that should not be freed. The freed entry is later used an
Why this priority
- High severity
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
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-2024-24577?
libgit2: upgrade to 1.6.5, 1.7.2. Exact commands for each OS are on this page.
Is CVE-2024-24577 being exploited?
CVE-2024-24577 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-2024-24577 affect?
CVE-2024-24577 affects libgit2. Severity is high (CVSS 8.6). 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. Using well-crafted inputs to `git_index_add` can cause heap corruptio
How urgent is CVE-2024-24577?
Priority 54/100. High severity; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- 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