CVE-2024-24575
highpriority · track · 31EPSS 0.014 · 73 %ileEURUUSEPSS · scored 2026-10-27
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_revparse_single` can cause the function to enter an infinite loop, potentially causing a Denial of Service attack in the calling application. The revparse function in `src/libgit2/revparse.c` uses a loop to parse the user-provided spec string. There is an edge-case during parsing that allows a bad actor to force the loop conditions to access arbitrary memory. Potentially, this could also leak memory if the extracted rev spec is reflected back to the attacker. As such, libgit2 versions before 1.4.0 are not affected. Users should upgrade to version 1.6.5 or 1.7.2.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.9–7.5
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (13)
Products and version ranges known to be affected.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (24)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2024-24575/cnnvd
- https://github.com/libgit2/libgit2/commit/add2dabb3c16aa49b33904dcdc07cd915efc12facnnvd
- https://github.com/libgit2/libgit2/releases/tag/v1.6.5cnnvd
- https://github.com/libgit2/libgit2/releases/tag/v1.7.2cnnvd
- https://github.com/libgit2/libgit2/security/advisories/GHSA-54mf-x2rh-hq9vcnnvd
- https://vigilance.fr/vulnerability/libgit2-overload-via-git-revparse-single-43474cnnvd
- https://github.com/libgit2/libgit2/commit/add2dabb3c16aa49b33904dcdc07cd915efc12faenisa_euvd
- https://github.com/libgit2/libgit2/releases/tag/v1.6.5enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan