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.
CVSS Details
- CVSS 3.1 Base Score: 7.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade libgit2 | Aug 22, 2024 | Feb 6, 2024 |
| Amazon Linux Ami 2 | — | Upgrade rust-toolsetUpgrade rust-srcUpgrade rust-docUpgrade rust-gdbUpgrade clippyUpgrade rust-analyzerUpgrade rust-debuginfoUpgrade cargoUpgrade rust-analysisUpgrade rustfmtUpgrade rust-debugger-commonUpgrade rustUpgrade rust-std-static | Mar 19, 2024 | Feb 6, 2024 |
| Amazon_linux_2023 | — | Upgrade libgit2-develUpgrade clippy-debuginfoUpgrade rust-debugsourceUpgrade rust-std-static-wasm32-wasiUpgrade rust-lldbUpgrade rustUpgrade rust-analyzerUpgrade libgit2-debugsourceUpgrade rust-std-static-wasm32-unknown-unknownUpgrade rust-debuginfoUpgrade rust-gdbUpgrade cargo-debuginfoUpgrade rust-docUpgrade rust-std-staticUpgrade rust-analysisUpgrade rust-analyzer-debuginfoUpgrade rust-srcUpgrade clippyUpgrade cargoUpgrade libgit2Upgrade rust-debugger-commonUpgrade rustfmt-debuginfoUpgrade rustfmtUpgrade libgit2-debuginfo | Feb 17, 2025 | Feb 6, 2024 |
| Debian | — | Upgrade libgit2 | Jul 30, 2024 | Feb 6, 2024 |
| Suse | — | Upgrade libgit2-1_7Upgrade libgit2-1_9Upgrade libgit2-toolsUpgrade libgit2-devel | Jul 23, 2024 | Feb 6, 2024 |
| Ubuntu | — | Upgrade libgit2-1.1Upgrade libgit2-24 (Ubuntu Pro)Upgrade libgit2-26 (Ubuntu Pro)Upgrade libgit2-1.5Upgrade libgit2-28 | Mar 6, 2024 | Feb 6, 2024 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub