7.5

CVE-2024-24575: libgit2 is vulnerable to a denial of service attack in `git_revparse_single`

Modified
AliasesDEBIAN-CVE-2024-24575CGA-6cvf-88p5-wf55CGA-cp6g-vgf4-qqgw
Published 06-02-2024Last modified 13-02-2025

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.

Priority
Prioritisesevere

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?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
1.44%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 5

Timeline

  1. 06-02-2024
    PublishedVulnerability first disclosed.
  2. 13-02-2025
    Last 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

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

05-11-202605-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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
Show all 14 references