CVE-2024-24575: libgit2 Uncontrolled Resource Consumption
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 72.8% of scored vulnerabilities.
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
5 scores · 5 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
EPSS trend
Probability
1.44%
Chance of exploitation in the next 30 days
Percentile
73%
Versus all other CVEs
30-day change
0.00 pp
From 1.44% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard2 products
- libgit2< 1.7.2-r0
- libgit2-1.5< 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
5 vendors · 6 products
References
13 links- github.com/libgit2/libgit2/security/advisories/GHSA-54mf-x2rh-hq9vX Refsource CONFIRMAdvisoryThird Party Advisory