Name | CVE-2024-24575 |
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 | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Debian Bugs | 1063415 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
libgit2 (PTS) | jessie, jessie (lts) | 0.21.1-3+deb8u1 | fixed |
stretch (security) | 0.25.1+really0.24.6-1+deb9u1 | fixed | |
stretch (lts), stretch | 0.25.1+really0.24.6-1+deb9u3 | fixed | |
buster (security), buster, buster (lts) | 0.27.7+dfsg.1-0.2+deb10u2 | fixed | |
bullseye (security), bullseye | 1.1.0+dfsg.1-4+deb11u2 | fixed | |
bookworm (security), bookworm | 1.5.1+ds-1+deb12u1 | fixed | |
sid, trixie | 1.8.4+ds-2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
libgit2 | source | jessie | (not affected) | |||
libgit2 | source | stretch | (not affected) | |||
libgit2 | source | buster | (not affected) | |||
libgit2 | source | bullseye | (not affected) | |||
libgit2 | source | bookworm | 1.5.1+ds-1+deb12u1 | |||
libgit2 | source | (unstable) | 1.7.2+ds-1 | 1063415 |
[bullseye] - libgit2 <not-affected> (Vulnerable code introduced later)
[buster] - libgit2 <not-affected> (Vulnerable code introduced later)
https://github.com/libgit2/libgit2/security/advisories/GHSA-54mf-x2rh-hq9v
Introduced by: https://github.com/libgit2/libgit2/commit/add2dabb3c16aa49b33904dcdc07cd915efc12fa (v1.4.0)
Fixed by: https://github.com/libgit2/libgit2/commit/c9d31b711e8906cf248566f43142f20b03e20cbf (v1.6.5)
Fixed by: https://github.com/libgit2/libgit2/commit/7f6f3dff9c41f3be7598693aa3c716c8354fba7f (v1.7.2)
[stretch] - libgit2 <not-affected> (Vulnerable code introduced later)
[jessie] - libgit2 <not-affected> (Vulnerable code introduced later)