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