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