CVE-2023-22742

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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
5.3 MEDIUM
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
GitHub_MCNA
5.3 MEDIUM
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
CVEADP
---
---
CISA-ADPADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 38%
VendorProductVersion
libgit2libgit2
𝑥
< 1.4.5
libgit2libgit2
1.5.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
libgit2
bullseye (security)
1.1.0+dfsg.1-4+deb11u2
fixed
bullseye
1.1.0+dfsg.1-4+deb11u2
fixed
bookworm
1.5.1+ds-1+deb12u1
fixed
bookworm (security)
1.5.1+ds-1+deb12u1
fixed
sid
1.8.4+ds-3
fixed
trixie
1.8.4+ds-3
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
libgit2
oracular
not-affected
noble
not-affected
mantic
not-affected
lunar
not-affected
kinetic
ignored
jammy
Fixed 1.1.0+dfsg.1-4.1ubuntu0.1
released
focal
Fixed 0.28.4+dfsg.1-2ubuntu0.1
released
bionic
Fixed 0.26.0+dfsg.1-1.1ubuntu0.2+esm1
released
xenial
Fixed 0.24.1-2ubuntu0.2+esm2
released
trusty
ignored