CVE-2024-24575
Libgit2 Infinite Loop Denial of Service
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.
INFO
Published Date :
Feb. 6, 2024, 10:16 p.m.
Last Modified :
Feb. 22, 2024, 4:15 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
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-24575
.
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-24575
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-24575
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. 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:N/I:N/A:H Changed Reference Type https://github.com/libgit2/libgit2/commit/add2dabb3c16aa49b33904dcdc07cd915efc12fa No Types Assigned https://github.com/libgit2/libgit2/commit/add2dabb3c16aa49b33904dcdc07cd915efc12fa Patch 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-54mf-x2rh-hq9v No Types Assigned https://github.com/libgit2/libgit2/security/advisories/GHSA-54mf-x2rh-hq9v Third Party Advisory Added CWE NIST CWE-400 Added CPE Configuration OR *cpe:2.3:a:libgit2:libgit2:*:*:*:*:*:*:*:* versions from (including) 1.4.0 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_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. Added Reference GitHub, Inc. https://github.com/libgit2/libgit2/security/advisories/GHSA-54mf-x2rh-hq9v [No types assigned] Added Reference GitHub, Inc. https://github.com/libgit2/libgit2/commit/add2dabb3c16aa49b33904dcdc07cd915efc12fa [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-400 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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-24575
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-24575
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.28 }} -0.05%
score
0.68907
percentile