CVE-2024-24575
Published Feb 6, 2024
Last updated 9 months ago
Overview
- 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.
- Source
- security-advisories@github.com
- NVD status
- Modified
Social media
- Hype score
- Not currently trending
Risk scores
CVSS 3.1
- Type
- Primary
- Base score
- 7.5
- Impact score
- 3.6
- Exploitability score
- 3.9
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Severity
- HIGH
Configurations
[ { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:a:libgit2:libgit2:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "D0B8863D-BE78-48DD-8B29-20548D8D8EB2", "versionEndExcluding": "1.6.5", "versionStartIncluding": "1.4.0" }, { "criteria": "cpe:2.3:a:libgit2:libgit2:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "E036286C-1FDD-47D7-89BA-5A436B2E72DF", "versionEndExcluding": "1.7.2", "versionStartIncluding": "1.7.0" } ], "operator": "OR" } ] } ]