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 clippyUpgrade rust-docUpgrade rust-toolsetUpgrade rust-srcUpgrade rust-analyzerUpgrade rust-gdbUpgrade rustUpgrade cargoUpgrade rust-debugger-commonUpgrade rust-analysisUpgrade rust-debuginfoUpgrade rust-std-staticUpgrade rustfmt | Mar 19, 2024 | Feb 6, 2024 |
| Amazon_linux_2023 | — | Upgrade cargo-debuginfoUpgrade rust-analyzerUpgrade rust-std-static-wasm32-unknown-unknownUpgrade rustUpgrade libgit2-debugsourceUpgrade libgit2-develUpgrade rust-debuginfoUpgrade rust-gdbUpgrade rust-std-static-wasm32-wasiUpgrade rust-debugsourceUpgrade rust-lldbUpgrade clippy-debuginfoUpgrade rust-debugger-commonUpgrade rust-docUpgrade libgit2Upgrade rust-srcUpgrade rust-analyzer-debuginfoUpgrade rust-analysisUpgrade rust-std-staticUpgrade cargoUpgrade libgit2-debuginfoUpgrade clippyUpgrade rustfmt-debuginfoUpgrade rustfmt | Feb 17, 2025 | Feb 6, 2024 |
| Debian | — | Upgrade libgit2 | Jul 30, 2024 | Feb 6, 2024 |
| Suse | — | Upgrade libgit2-1_9Upgrade libgit2-toolsUpgrade libgit2-1_7Upgrade libgit2-devel | Jul 23, 2024 | Feb 6, 2024 |
| Ubuntu | — | Upgrade libgit2-26 (Ubuntu Pro)Upgrade libgit2-28Upgrade libgit2-1.5Upgrade libgit2-1.1Upgrade libgit2-24 (Ubuntu Pro) | 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