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.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade libgit2 | Aug 22, 2024 | Feb 6, 2024 |
| Amazon Linux Ami 2 | — | Upgrade rust-docUpgrade rust-toolsetUpgrade clippyUpgrade rust-analyzerUpgrade rust-gdbUpgrade rust-srcUpgrade rust-analysisUpgrade rust-std-staticUpgrade rustUpgrade rustfmtUpgrade rust-debugger-commonUpgrade rust-debuginfoUpgrade cargo | Mar 19, 2024 | Feb 6, 2024 |
| Amazon_linux_2023 | — | Upgrade rust-analyzer-debuginfoUpgrade libgit2-debuginfoUpgrade rust-debugger-commonUpgrade rustfmtUpgrade rust-srcUpgrade clippyUpgrade rustfmt-debuginfoUpgrade libgit2Upgrade rust-docUpgrade cargoUpgrade rust-std-staticUpgrade rust-analysisUpgrade cargo-debuginfoUpgrade rust-analyzerUpgrade rust-debuginfoUpgrade rustUpgrade rust-gdbUpgrade rust-lldbUpgrade rust-std-static-wasm32-wasiUpgrade libgit2-debugsourceUpgrade rust-debugsourceUpgrade libgit2-develUpgrade clippy-debuginfoUpgrade rust-std-static-wasm32-unknown-unknown | Feb 17, 2025 | Feb 6, 2024 |
| Debian | — | Upgrade libgit2 | Jul 30, 2024 | Feb 6, 2024 |
| Suse | — | Upgrade libgit2-develUpgrade libgit2-1_7Upgrade libgit2-1_9Upgrade libgit2-tools | 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 |
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