CVE-2024-24577
Libgit2 Heap Corruption Arbitrary Code Execution Vulnerability
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.
INFO
Published Date :
Feb. 6, 2024, 10:16 p.m.
Last Modified :
Feb. 27, 2024, 10:15 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
3.9
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-24577
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-24577
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-24577
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Feb. 27, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.debian.org/debian-lts-announce/2024/02/msg00012.html [No types assigned] -
CVE Modified by [email protected]
Feb. 22, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/ZGNHOEE2RBLH7KCJUPUNYG4CDTW4HTBT/ [No types assigned] -
CVE Modified by [email protected]
Feb. 20, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/Z6MXOX7I43OWNN7R6M54XLG6U5RXY244/ [No types assigned] -
CVE Modified by [email protected]
Feb. 17, 2024
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/S635BGHHZUMRPI7QOXOJ45QHDD5FFZ3S/ [No types assigned] Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/4M3P7WIEPXNRLBINQRJFXUSTNKBCHYC7/ [No types assigned] Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/7CNDW3PF6NHO7OXNM5GN6WSSGAMA7MZE/ [No types assigned] -
Initial Analysis by [email protected]
Feb. 15, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/libgit2/libgit2/releases/tag/v1.6.5 No Types Assigned https://github.com/libgit2/libgit2/releases/tag/v1.6.5 Release Notes Changed Reference Type https://github.com/libgit2/libgit2/releases/tag/v1.7.2 No Types Assigned https://github.com/libgit2/libgit2/releases/tag/v1.7.2 Release Notes Changed Reference Type https://github.com/libgit2/libgit2/security/advisories/GHSA-j2v7-4f6v-gpg8 No Types Assigned https://github.com/libgit2/libgit2/security/advisories/GHSA-j2v7-4f6v-gpg8 Third Party Advisory Added CWE NIST CWE-119 Added CPE Configuration OR *cpe:2.3:a:libgit2:libgit2:*:*:*:*:*:*:*:* versions up to (excluding) 1.6.5 *cpe:2.3:a:libgit2:libgit2:*:*:*:*:*:*:*:* versions from (including) 1.7.0 up to (excluding) 1.7.2 -
CVE Received by [email protected]
Feb. 06, 2024
Action Type Old Value New Value Added 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. Added Reference GitHub, Inc. https://github.com/libgit2/libgit2/security/advisories/GHSA-j2v7-4f6v-gpg8 [No types assigned] Added Reference GitHub, Inc. https://github.com/libgit2/libgit2/releases/tag/v1.6.5 [No types assigned] Added Reference GitHub, Inc. https://github.com/libgit2/libgit2/releases/tag/v1.7.2 [No types assigned] Added CWE GitHub, Inc. CWE-122 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-24577
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-24577
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.23 }} -0.07%
score
0.60177
percentile