CVE-2023-22742

unknown
Published 2023-01-20 ยท Modified 2023-11-08
CVSS v3
โ€”
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
โ€”

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.

Predictions

Exploit likelihood
30%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

OS impact

OSVersionStatusFixed in
suse slesaffected
debian debianbookwormfixed1.5.1+ds-1
debian debianbullseyefixed1.1.0+dfsg.1-4+deb11u1
debian debianforkyfixed1.5.1+ds-1
debian debiansidfixed1.5.1+ds-1
debian debiantrixiefixed1.5.1+ds-1

Package impact

EcosystemPackageVulnerableFixed
rust crates.iolibgit2-sys
rust crates.iolibgit2-sys>=0.14.0,<0.14.20.14.2
rust crates.iolibgit2-sys<0.13.50.13.5
rust crates.iogit2<0.16.10.16.1

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.