# CVE-2024-24575: libgit2 is vulnerable to a denial of service attack in \`git\_revparse\_single\`

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 05-12-2026)
- Next step: Check applicability: affected before 1.6.5, 1.7.2 (CNA); fix release not confirmed
- Status: published
- Published: 2024-02-06 · Modified: 2025-02-13
- Aliases: DEBIAN-CVE-2024-24575, CGA-6cvf-88p5-wf55, CGA-cp6g-vgf4-qqgw, openSUSE-SU-2024:13675-1, CGA-5m86-x88q-xp7f, CGA-rcc8-j3f7-5fxm, ALPINE-CVE-2024-24575
- Record: https://cvemate.com/vulnerability/CVE-2024-24575 · JSON: https://cvemate.com/vulnerability/CVE-2024-24575/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.443%, percentile 74.194%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine libgit2 (Alpine Linux): ≥ 1.4.0, \< 1.7.2-r0 \| ≥ 1.7.0, \< 1.7.2-r0
- chainguard libgit2 (Chainguard): \< 1.7.2-r0
- chainguard libgit2-1.5 (Chainguard): \< 1.7.2-r0
- wolfi libgit2 (Wolfi): \< 1.7.2-r0
- debian libgit2 (Debian): \< 1.5.1+ds-1+deb12u1 \| \< 1.7.2+ds-1
- libgit2 libgit2: ≥ 1.4.0, \< 1.6.5 \| ≥ 1.7.0, \< 1.7.2
- opensuse libgit2&distro=openSUSE Tumbleweed (openSUSE): \< 1.7.2-2.1

## References

- <https://github.com/libgit2/libgit2/security/advisories/GHSA-54mf-x2rh-hq9v>
- <https://github.com/libgit2/libgit2/commit/add2dabb3c16aa49b33904dcdc07cd915efc12fa>
- <https://github.com/libgit2/libgit2/releases/tag/v1.6.5>
- <https://github.com/libgit2/libgit2/releases/tag/v1.7.2>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/S635BGHHZUMRPI7QOXOJ45QHDD5FFZ3S/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4M3P7WIEPXNRLBINQRJFXUSTNKBCHYC7/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7CNDW3PF6NHO7OXNM5GN6WSSGAMA7MZE/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z6MXOX7I43OWNN7R6M54XLG6U5RXY244/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGNHOEE2RBLH7KCJUPUNYG4CDTW4HTBT/>
- <https://security-tracker.debian.org/tracker/CVE-2024-24575>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/24xxx/CVE-2024-24575.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-24575>
- <https://www.suse.com/security/cve/CVE-2024-24575>
- <https://security.alpinelinux.org/vuln/CVE-2024-24575>

---

Data as of 2026-12-05T18:39:34.733Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
