CVE-2023-22742
Summary
| CVE | CVE-2023-22742 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-01-20 23:15:00 UTC |
| Updated | 2023-11-07 04:07:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-347
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Release libgit2 v1.5.1 · libgit2/libgit2 · GitHub | MISC | github.com | |
| oss-security - Re: CVE-2022-46176: Cargo does not check SSH host keys | www.openwall.com | ||
| libssh2 | MISC | www.libssh2.org | |
| Merge pull request #6449 from libgit2/1.4_ssh · libgit2/libgit2@cd6f679 · GitHub | MISC | github.com | |
| libgit2 fails to verify SSH keys by default · Advisory · libgit2/libgit2 · GitHub | MISC | github.com | |
| Release libgit2 v1.4.5 · libgit2/libgit2 · GitHub | MISC | github.com | |
| Merge pull request #6450 from libgit2/1.5_ssh · libgit2/libgit2@42e5db9 · GitHub | MISC | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 181608 Debian Security Update for libgit2 (DLA 3340-1)
- 184202 Debian Security Update for libgit2 (CVE-2023-22742)
- 200167 Ubuntu Security Notification for libgit2 Vulnerabilities (USN-6678-1)
- 502877 Alpine Linux Security Update for libgit2
- 753926 SUSE Enterprise Linux Security Update for libgit2 (SUSE-SU-2023:1909-1)
- 905341 Common Base Linux Mariner (CBL-Mariner) Security Update for rust (13147)
- 905352 Common Base Linux Mariner (CBL-Mariner) Security Update for libgit2 (13140)
- 905368 Common Base Linux Mariner (CBL-Mariner) Security Update for rust (13175)
- 906804 Common Base Linux Mariner (CBL-Mariner) Security Update for rust (13175-1)