CVE-2023-22742
CVE-2023-22742 — libgit2 fails to verify SSH keys by default
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
5.3
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 5.3 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-347
References
7 on the record
- github.com/libgit2/libgit2/security/advisories/GHSA-8643-3wh5-rmjq
x_refsource_CONFIRM
- github.com/libgit2/libgit2/commit/42e5db98b963ae503229c63e44e06e439df50e56
x_refsource_MISC
- github.com/libgit2/libgit2/commit/cd6f679af401eda1f172402006ef8265f8bd58ea
x_refsource_MISC
- github.com/libgit2/libgit2/releases/tag/v1.4.5
x_refsource_MISC
- github.com/libgit2/libgit2/releases/tag/v1.5.1
x_refsource_MISC
- www.libssh2.org
x_refsource_MISC
- www.openwall.com/lists/oss-security/2023/11/06/5
reference
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-48558 SimpleHelp Authentication Bypass via Missing OIDC JWT Signature VerificationCVSS 10.0 · CISA KEV
- CVE-2026-5430 Authentication Bypass via JWT Algorithm Mismatch in Multiple WSO2 Products Allows Account TakeoverCVSS 10.0 · CISA KEV
- CVE-2020-2021 PAN-OS: Authentication Bypass in SAML AuthenticationCVSS 10.0 · CISA KEV
- CVE-2025-59718 Fortinet Multiple Products Improper Verification of Cryptographic Signature VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2013-3900 Microsoft WinVerifyTrust function Remote Code ExecutionCVSS 7.6 · CISA KEV
- CVE-2025-47827 IGEL OS Use of a Key Past its Expiration Date VulnerabilityCVSS 4.6 · CISA KEV
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.