CVE & CISA-KEV Catalog

CVE-2024-24577

HIGHEPSS 72th pctl
8.6
CVSS v3
NVD

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.

How to fix

Remediation Available
libgit2Debian
Fixed in:1.1.0+dfsg.1-4+deb11u2CVE-2024-24577
Fixed in:1.5.1+ds-1+deb12u1CVE-2024-24577
Fixed in:1.7.2+ds-1CVE-2024-24577
Fixed in:1.7.2+ds-1CVE-2024-24577
libgit2Ubuntu
Fixed in:0.24.1-2ubuntu0.2+esm2USN-6678-1
Fixed in:0.26.0+dfsg.1-1.1ubuntu0.2+esm1USN-6678-1
Fixed in:0.28.4+dfsg.1-2ubuntu0.1USN-6678-1
Fixed in:1.1.0+dfsg.1-4.1ubuntu0.1USN-6678-1
Fixed in:1.5.1+ds-1ubuntu1.1USN-6678-1
libgit2-1.1Ubuntu
Fixed in:1.1.0+dfsg.1-4.1ubuntu0.1USN-6678-1
libgit2-1.5Ubuntu
Fixed in:1.5.1+ds-1ubuntu1.1USN-6678-1
libgit2-24Ubuntu
Fixed in:0.24.1-2ubuntu0.2+esm2USN-6678-1
libgit2-26Ubuntu
Fixed in:0.26.0+dfsg.1-1.1ubuntu0.2+esm1USN-6678-1
libgit2-28Ubuntu
Fixed in:0.28.4+dfsg.1-2ubuntu0.1USN-6678-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityLow
AvailabilityLow

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L

Exploit Intelligence

1.55%probability of exploitation in 30 days
72ndpercentile

Elevated risk: more likely to be exploited than 72% of all known CVEs.

References

Related Vulnerabilities

Other CWE-122 (Heap-based Buffer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2015-3113Critical9.8100%KEVFix
CVE-2024-26256High7.888%-Fix
CVE-2020-25687Medium5.987%-Fix
CVE-2009-3459High8.886%KEVFix
CVE-2021-21017High8.886%KEV-
CVE-2020-25683Medium5.986%-Fix
Embed a live status badge for CVE-2024-24577
CVE-2024-24577 severity badge

Markdown

[![CVE-2024-24577](https://tridentstack.com/cve/badge/CVE-2024-24577.svg)](https://tridentstack.com/cve/CVE-2024-24577)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-24577"><img src="https://tridentstack.com/cve/badge/CVE-2024-24577.svg" alt="CVE-2024-24577"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.