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
NISTPrimary
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
Base Score
CVSS 3.x
EPSS Score
Percentile: 30%
Affected Products (NVD)
VendorProductVersion
libgit2libgit2
𝑥
< 1.4.5
libgit2libgit2
1.5.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
libgit2
bookworm
1.5.1+ds-1+deb12u1
fixed
bookworm (security)
1.5.1+ds-1+deb12u1
fixed
bullseye
1.1.0+dfsg.1-4+deb11u2
fixed
bullseye (security)
1.1.0+dfsg.1-4+deb11u2
fixed
sid
1.8.4+ds-3
fixed
trixie
1.8.4+ds-3
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
libgit2
bionic
Fixed 0.26.0+dfsg.1-1.1ubuntu0.2+esm1
released
focal
Fixed 0.28.4+dfsg.1-2ubuntu0.1
released
jammy
Fixed 1.1.0+dfsg.1-4.1ubuntu0.1
released
kinetic
ignored
lunar
not-affected
mantic
not-affected
noble
not-affected
oracular
not-affected
trusty
ignored
xenial
Fixed 0.24.1-2ubuntu0.2+esm2
released
openSUSE logo
openSUSE / SLES Releases
openSUSE Product
Release
libgit2-1_3
suse enterprise desktop 15 SP4
1.3.0-150400.3.6.1
fixed
suse enterprise desktop 15 SP5
1.3.0-150400.3.6.1
fixed
suse enterprise sap 15 SP4
1.3.0-150400.3.6.1
fixed
suse enterprise sap 15 SP5
1.3.0-150400.3.6.1
fixed
suse enterprise server 15 SP4
1.3.0-150400.3.6.1
fixed
suse enterprise server 15 SP5
1.3.0-150400.3.6.1
fixed
libgit2-1_7
suse enterprise desktop 15 SP6
1.7.1-150600.1.6
fixed
suse enterprise desktop 15 SP7
1.7.2-150600.3.3.1
fixed
suse enterprise sap 15 SP6
1.7.1-150600.1.6
fixed
suse enterprise sap 15 SP7
1.7.2-150600.3.3.1
fixed
suse enterprise server 15 SP6
1.7.1-150600.1.6
fixed
suse enterprise server 15 SP7
1.7.2-150600.3.3.1
fixed
libgit2-devel
suse enterprise desktop 15 SP4
1.3.0-150400.3.6.1
fixed
suse enterprise desktop 15 SP5
1.3.0-150400.3.6.1
fixed
suse enterprise desktop 15 SP6
1.7.1-150600.1.6
fixed
suse enterprise desktop 15 SP7
1.7.2-150600.3.3.1
fixed
suse enterprise sap 15 SP4
1.3.0-150400.3.6.1
fixed
suse enterprise sap 15 SP5
1.3.0-150400.3.6.1
fixed
suse enterprise sap 15 SP6
1.7.1-150600.1.6
fixed
suse enterprise sap 15 SP7
1.7.2-150600.3.3.1
fixed
suse enterprise server 15 SP4
1.3.0-150400.3.6.1
fixed
suse enterprise server 15 SP5
1.3.0-150400.3.6.1
fixed
suse enterprise server 15 SP6
1.7.1-150600.1.6
fixed
suse enterprise server 15 SP7
1.7.2-150600.3.3.1
fixed
libgit2-tools
suse enterprise desktop 15 SP6
1.7.1-150600.1.6
fixed
suse enterprise desktop 15 SP7
1.7.2-150600.3.3.1
fixed
suse enterprise sap 15 SP6
1.7.1-150600.1.6
fixed
suse enterprise sap 15 SP7
1.7.2-150600.3.3.1
fixed
suse enterprise server 15 SP6
1.7.1-150600.1.6
fixed
suse enterprise server 15 SP7
1.7.2-150600.3.3.1
fixed