Patchwire CVEs, their patch status, and feeds to follow them

CVE-2024-24575

Fixed in a distro release EPSS 1%CVSS 7.5

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.

Published 2024-02-06 · CVE record · OSV

Products: libgit2

Distro releases

ReleasePackageFixed in
Amazon Linux 2cargo1.68.2-1.amzn2.0.6
Amazon Linux 2clippy1.68.2-1.amzn2.0.6
Amazon Linux 2rust1.68.2-1.amzn2.0.6
Amazon Linux 2rust-analysis1.68.2-1.amzn2.0.6
Amazon Linux 2rust-analyzer1.68.2-1.amzn2.0.6
Amazon Linux 2rust-debugger-common1.68.2-1.amzn2.0.6
Amazon Linux 2rust-doc1.68.2-1.amzn2.0.6
Amazon Linux 2rust-gdb1.68.2-1.amzn2.0.6
Amazon Linux 2rust-src1.68.2-1.amzn2.0.6
Amazon Linux 2rust-std-static1.68.2-1.amzn2.0.6
Amazon Linux 2rust-toolset1.68.2-1.amzn2.0.6
Amazon Linux 2rustfmt1.68.2-1.amzn2.0.6
Amazon Linux 2023cargo1.68.2-1.amzn2023.0.5
Amazon Linux 2023clippy1.68.2-1.amzn2023.0.5
Amazon Linux 2023libgit21.6.4-115.amzn2023.0.2
Amazon Linux 2023libgit2-devel1.6.4-115.amzn2023.0.2
Amazon Linux 2023rust1.68.2-1.amzn2023.0.5
Amazon Linux 2023rust-analysis1.68.2-1.amzn2023.0.5
Amazon Linux 2023rust-analyzer1.68.2-1.amzn2023.0.5
Amazon Linux 2023rust-debugger-common1.68.2-1.amzn2023.0.5
Amazon Linux 2023rust-doc1.68.2-1.amzn2023.0.5
Amazon Linux 2023rust-gdb1.68.2-1.amzn2023.0.5
Amazon Linux 2023rust-lldb1.68.2-1.amzn2023.0.5
Amazon Linux 2023rust-src1.68.2-1.amzn2023.0.5
Amazon Linux 2023rust-std-static1.68.2-1.amzn2023.0.5
Amazon Linux 2023rust-std-static-wasm32-unknown-unknown1.68.2-1.amzn2023.0.5
Amazon Linux 2023rust-std-static-wasm32-wasi1.68.2-1.amzn2023.0.5
Amazon Linux 2023rustfmt1.68.2-1.amzn2023.0.5
Chainguardlibgit21.7.2-r0
Chainguardlibgit2-1.51.7.2-r0
Debian 12libgit21.5.1+ds-1+deb12u1
Debian 13libgit21.7.2+ds-1
Debian 14libgit21.7.2+ds-1
SUSE Linux Enterprise Module for Development Tools 15 SP6libgit21.7.2-150600.3.3.1
Ubuntu 20.04 LTSlibgit20.28.4+dfsg.1-2ubuntu0.1
Ubuntu 22.04 LTSlibgit21.1.0+dfsg.1-4.1ubuntu0.1
Ubuntu Pro 16.04 LTSlibgit20.24.1-2ubuntu0.2+esm2
Ubuntu Pro 18.04 LTSlibgit20.26.0+dfsg.1-1.1ubuntu0.2+esm1
Wolfilibgit21.7.2-r0
openSUSE Leap 15.6libgit21.7.2-150600.3.3.1
openSUSE Tumbleweedlibgit21.7.2-2.1