CVE catalog

CVE-2024-24575

libgit2: CVE-2024-24575

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.44% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibgit2sid1.9.7+ds-1fixed
Debianlibgit2forky1.9.7+ds-1fixed
Debianlibgit2trixie1.9.0+ds-2+deb13u1fixed
Debianlibgit2trixie-security1.9.0+ds-2+deb13u1fixed
Debianlibgit2bookworm1.5.1+ds-1+deb12u1fixed
Debianlibgit2bookworm-security1.5.1+ds-1+deb12u2fixed
Opensuselibgit2tumbleweed1.7.2-2.1fixed
Suselibgit2linux enterprise module for development tools 15 sp61.7.2-150600.3.3.1fixed
Opensuselibgit2leap 15.61.7.2-150600.3.3.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibgit2sourcesid1.7.2+ds-1not yet assignedNot reported[1063415]
Debianlibgit2sourceforky1.7.2+ds-1not yet assignedNot reported[1063415]
Debianlibgit2sourcetrixie1.7.2+ds-1not yet assignedNot reported[1063415]
Debianlibgit2sourcebookworm1.5.1+ds-1+deb12u1not yet assignedNot reported[1063415]
Opensuselibgit2rpmtumbleweed1.7.2-2.1Not reportedOPENSUSE-SU-2024:13675-1Not reported
Suselibgit2rpmlinux enterprise module for development tools 15 sp61.7.2-150600.3.3.1Not reportedSUSE-SU-2024:2584-1Not reported
Opensuselibgit2rpmleap 15.61.7.2-150600.3.3.1Not reportedSUSE-SU-2024:2584-1Not reported

[Debian bug #1063415]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References