9.8

CVE-2024-24577: libgit2 Heap-based Buffer Overflow

CVSS: 9.8v3.1CriticalModified
AliasesSUSE-SU-2024:2579-1SUSE-SU-2024:2583-1SUSE-SU-2024:2592-1
Published 06-02-2024Last modified 15-05-2025

Vulnerability summary

CVE-2024-24577 is a critical (CVSS 9.8) Heap-based Buffer Overflow vulnerability in libgit2. EPSS estimates a 1.55% chance of exploitation in the next 30 days, higher than 74.6% of scored vulnerabilities.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
1.55%
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 5 · Related 8

Timeline

  1. 06-02-2024
    PublishedVulnerability first disclosed.
  2. 15-05-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_index_add` can cause heap corruption that could be leveraged for arbitrary code execution. There is an issue in the `has_dir_name` function in `src/libgit2/index.c`, which frees an entry that should not be freed. The freed entry is later used and overwritten with potentially bad actor-controlled data leading to controlled heap corruption. Depending on the application that uses libgit2, this could lead to arbitrary code execution. This issue has been patched in version 1.6.5 and 1.7.2.

CVSS metrics

6 scores · 6 sources · 1 version

EPSS trend

Probability

1.55%

Chance of exploitation in the next 30 days

Percentile

75%

Versus all other CVEs

30-day change

0.00 pp

From 1.55% on 19-09-2026

19-09-202619-10-2026
EPSS score
1.55%

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

Suse35 products
  • git&distro=SUSE Enterprise Storage 7.1< 2.35.3-150300.10.42.1
  • git&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS< 2.26.2-150000.59.1
  • git&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS< 2.35.3-150300.10.42.1
  • git&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 2.35.3-150300.10.42.1
  • git&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 2.35.3-150300.10.42.1
Opensuse5 products
  • git&distro=openSUSE Leap 15.5< 2.35.3-150300.10.42.1
  • git&distro=openSUSE Leap 15.6< 2.43.0-150600.3.6.1
  • git&distro=openSUSE Leap Micro 5.5< 2.35.3-150300.10.42.1
  • git&distro=openSUSE Tumbleweed< 2.45.2-2.1
  • libgit2&distro=openSUSE Leap 15.5< 1.3.0-150400.3.9.1
Chainguard2 products
  • libgit2< 1.7.2-r0
  • libgit2-1.5< 1.7.2-r0
Debian1 product
  • libgit2< 1.7.2+ds-1 | < 1.1.0+dfsg.1-4+deb11u2 | < 1.5.1+ds-1+deb12u1 | < 0.27.7+dfsg.1-0.2+deb10u2
Libgit21 product
  • libgit2< 1.6.5 | ≥ 1.7.0, < 1.7.2
Ubuntu1 product
  • libgit2< 0.24.1-2ubuntu0.2+esm2 | < 0.26.0+dfsg.1-1.1ubuntu0.2+esm1 | < 0.28.4+dfsg.1-2ubuntu0.1 | < 1.1.0+dfsg.1-4.1ubuntu0.1
Wolfi1 product
  • libgit2< 1.7.2-r0

7 vendors · 46 products

References

25 links
Show all 25 references