CVE-2023-22742
Last modified
CVE-2023-22742 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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. EPSS estimates a 0.58% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Libgit2 | Libgit2 | < 1.4.5 |
| Libgit2 | Libgit2 | 1.5.0 |
References
- https://github.com/libgit2/libgit2/commit/42e5db98b963ae503229c63e44e06e439df50e56Patch, Third Party Advisory
- https://github.com/libgit2/libgit2/commit/cd6f679af401eda1f172402006ef8265f8bd58eaPatch, Third Party Advisory
- https://github.com/libgit2/libgit2/releases/tag/v1.4.5Release Notes, Third Party Advisory
- https://github.com/libgit2/libgit2/releases/tag/v1.5.1Release Notes, Third Party Advisory
- https://github.com/libgit2/libgit2/security/advisories/GHSA-8643-3wh5-rmjqThird Party Advisory
- https://www.libssh2.orgThird Party Advisory
- https://github.com/libgit2/libgit2/commit/42e5db98b963ae503229c63e44e06e439df50e56Patch, Third Party Advisory
- https://github.com/libgit2/libgit2/commit/cd6f679af401eda1f172402006ef8265f8bd58eaPatch, Third Party Advisory
- https://github.com/libgit2/libgit2/releases/tag/v1.4.5Release Notes, Third Party Advisory
- https://github.com/libgit2/libgit2/releases/tag/v1.5.1Release Notes, Third Party Advisory
- https://github.com/libgit2/libgit2/security/advisories/GHSA-8643-3wh5-rmjqThird Party Advisory
- https://www.libssh2.orgThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-22742?
How severe is CVE-2023-22742?
How do I fix CVE-2023-22742?
How Strix Helps
- Same Subject, Wrong User: A Cross-Issuer Account Takeover in n8nStrix found an identity-binding bug in n8n's token-exchange flow enabling account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-22737wire-server provides back end services for Wire, a team comm…6.5
- CVE-2023-22738vantage6 is a privacy preserving federated learning infrastr…6.5
- CVE-2023-22739Discourse is an open source platform for community discussio…6.5
- CVE-2023-2274Rejected reason: This CVE assignment was considered invalid …
- CVE-2023-22740Discourse is an open source platform for community discussio…6.5
- CVE-2023-22741Sofia-SIP is an open-source SIP User-Agent library, complian…9.8
- CVE-2023-22743Git for Windows is the Windows port of the revision control …7.3
- CVE-2023-22745tpm2-tss is an open source software implementation of the Tr…6.4
- CVE-2023-22746CKAN is an open-source DMS (data management system) for powe…7.5
- CVE-2023-22747There are multiple command injection vulnerabilities that co…9.8
- CVE-2023-22748 There are multiple command injection vulnerabilities that c…9.8
- CVE-2023-22749 There are multiple command injection vulnerabilities that c…9.8
Are you affected by CVE-2023-22742?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
