libgit2 is a cross-platform, linkable library implementation of Git. When using an SSH remote with the optional libssh2 backend, libgit2 does not perform certificate checking by default. Prior versions of libgit2 require the caller to set the `certificate_check` field of libgit2's `git_remote_callbacks` structure - if a certificate check callback is not set, libgit2 does not perform any certificate checking. This means that by default - without configuring a certificate check callback, clients will not perform validation on the server SSH keys and may be subject to a man-in-the-middle attack. Users are encouraged to upgrade to v1.4.5 or v1.5.1. Users unable to upgrade should ensure that all relevant certificates are manually checked.
CVSS Details
- CVSS 3.1 Base Score: 5.3
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade libgit2 | Aug 22, 2024 | Jan 20, 2023 |
| Debian | — | Upgrade libgit2 | Feb 27, 2023 | Jan 20, 2023 |
| Gentoo Linux | — | Upgrade dev-libs/libgit2. | Nov 7, 2024 | Jan 20, 2023 |
| Redhat_linux | — | No solution exists | Jul 9, 2025 | Jan 20, 2023 |
| Suse | — | Upgrade libgit2-28-32bitUpgrade libgit2-28Upgrade libgit2-1_3-32bitUpgrade libgit2-develUpgrade libgit2-26Upgrade libgit2-26-32bitUpgrade libgit2-1_3 | Mar 27, 2023 | Jan 20, 2023 |
| Ubuntu | — | Upgrade libgit2-1.5Upgrade libgit2-26 (Ubuntu Pro)Upgrade libgit2-28Upgrade libgit2-24 (Ubuntu Pro)Upgrade libgit2-1.1 | Mar 6, 2024 | Jan 20, 2023 |
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