CVE-2023-22742
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
10- Range: before v1.4.5 or v1.5.1
- osv-coords8 versionspkg:apk/chainguard/libgit2-1.5pkg:apk/chainguard/libgit2-dev-1.5pkg:rpm/opensuse/libgit2&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/libgit2&distro=openSUSE%20Tumbleweedpkg:rpm/suse/libgit2&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4pkg:rpm/suse/libgit2&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3pkg:rpm/suse/libgit2&distro=SUSE%20Manager%20Server%20Module%204.2pkg:rpm/suse/libgit2&distro=SUSE%20Manager%20Server%20Module%204.3
< 1.7.2-r0+ 7 more
- (no CPE)range: < 1.7.2-r0
- (no CPE)range: < 1.7.2-r0
- (no CPE)range: < 0.26.8-150000.3.18.1
- (no CPE)range: < 1.5.1-1.1
- (no CPE)range: < 1.3.0-150400.3.6.1
- (no CPE)range: < 0.28.4-150200.3.6.1
- (no CPE)range: < 0.28.4-150200.3.6.1
- (no CPE)range: < 0.28.4-150200.3.6.1
- libgit2/libgit2v5Range: < 1.4.5
Patches
Vulnerability mechanics
References
7- github.com/libgit2/libgit2/commit/42e5db98b963ae503229c63e44e06e439df50e56nvdPatchThird Party Advisory
- github.com/libgit2/libgit2/commit/cd6f679af401eda1f172402006ef8265f8bd58eanvdPatchThird Party Advisory
- github.com/libgit2/libgit2/releases/tag/v1.4.5nvdRelease NotesThird Party Advisory
- github.com/libgit2/libgit2/releases/tag/v1.5.1nvdRelease NotesThird Party Advisory
- github.com/libgit2/libgit2/security/advisories/GHSA-8643-3wh5-rmjqnvdThird Party Advisory
- www.libssh2.orgnvdThird Party Advisory
- www.openwall.com/lists/oss-security/2023/11/06/5nvd
News mentions
0No linked articles in our index yet.