CVE-2024-24575: libgit2 is vulnerable to a denial of service attack in `git_revparse_single`
Vulnerability summary
CVE-2024-24575 is a high (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in libgit2. EPSS estimates a 1.44% chance of exploitation in the next 30 days, higher than 74.1% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 05-12-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 5Timeline
- 06-02-2024PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
Description
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 metrics
6 scores · 6 sources · 1 version- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.44%
Chance of exploitation in the next 30 days
Percentile
74%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.44% on 05-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard2 products
- libgit2< 1.7.2-r0
- libgit2-1.5< 1.7.2-r0
Alpine1 product
- libgit2≥ 1.4.0, < 1.7.2-r0 | ≥ 1.7.0, < 1.7.2-r0
Debian1 product
- libgit2< 1.5.1+ds-1+deb12u1 | < 1.7.2+ds-1
Libgit21 product
- libgit2≥ 1.4.0, < 1.6.5 | ≥ 1.7.0, < 1.7.2
Opensuse1 product
- libgit2&distro=openSUSE Tumbleweed< 1.7.2-2.1
Wolfi1 product
- libgit2< 1.7.2-r0
6 vendors · 7 products
References
14 links- github.com/libgit2/libgit2/security/advisories/GHSA-54mf-x2rh-hq9vX Refsource CONFIRMAdvisoryThird Party Advisory