7.5

CVE-2024-24575: libgit2 Uncontrolled Resource Consumption

CVSS: 7.5v3.1HighModified
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 72.8% of scored vulnerabilities.

Overall risk
30/100
0100
Medium · default modelHow is this calculated?
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 listedIn no KEV catalog
RansomwareNone recordedNo known 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

5 scores · 5 sources · 1 version

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

20-09-202620-10-2026
EPSS score
1.44%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected 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
Show all 13 references