
CVE catalog
CVE-2023-22742
libgit2: CVE-2023-22742
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.58% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libgit2 | sid | 1.9.7+ds-1 | fixed |
| Debian | libgit2 | forky | 1.9.7+ds-1 | fixed |
| Debian | libgit2 | trixie | 1.9.0+ds-2+deb13u1 | fixed |
| Debian | libgit2 | trixie-security | 1.9.0+ds-2+deb13u1 | fixed |
| Debian | libgit2 | bookworm | 1.5.1+ds-1+deb12u1 | fixed |
| Debian | libgit2 | bookworm-security | 1.5.1+ds-1+deb12u2 | fixed |
| Crates.Io | libgit2-sys | Not reported | 0.13.5 | fixed |
| Crates.Io | git2 | Not reported | 0.16.1 | fixed |
| Ubuntu | libgit2 | pro | 0.25.1+really0.24.6-1 | vulnerable |
| Ubuntu | libgit2 | pro | 0.26.0+dfsg.1-1.1 | vulnerable |
| Ubuntu | libgit2 | pro | 0.26.0+dfsg.1-1.1build1 | vulnerable |
| Ubuntu | libgit2 | pro | 0.26.0+dfsg.1-1.1ubuntu0.2 | vulnerable |
| Ubuntu | libgit2 | pro | 0.26.0+dfsg.1-1.1ubuntu0.2+esm1 | fixed |
| Ubuntu | libgit2 | 20.04 | 0.27.7+dfsg.1-0.2build1 | vulnerable |
| Ubuntu | libgit2 | 20.04 | 0.28.3+dfsg.1-1 | vulnerable |
| Ubuntu | libgit2 | 20.04 | 0.28.3+dfsg.1-1ubuntu1 | vulnerable |
| Ubuntu | libgit2 | 20.04 | 0.28.4+dfsg.1-2 | vulnerable |
| Ubuntu | libgit2 | 20.04 | 0.28.4+dfsg.1-2ubuntu0.1 | fixed |
| Ubuntu | libgit2 | 22.04 | 1.1.0+dfsg.1-4 | vulnerable |
| Ubuntu | libgit2 | 22.04 | 1.1.0+dfsg.1-4.1 | vulnerable |
| Ubuntu | libgit2 | 22.04 | 1.1.0+dfsg.1-4.1build1 | vulnerable |
| Ubuntu | libgit2 | 22.04 | 1.1.0+dfsg.1-4.1ubuntu0.1 | fixed |
| Suse | libgit2 | linux enterprise module for development tools 15 sp4 | 1.3.0-150400.3.6.1 | fixed |
| Opensuse | libgit2 | leap 15.4 | 1.3.0-150400.3.6.1 | fixed |
| Opensuse | libgit2 | leap 15.4 | 0.26.8-150000.3.18.1 | fixed |
| Opensuse | libgit2 | tumbleweed | 1.5.1-1.1 | fixed |
| Suse | libgit2 | manager server module 4.2 | 0.28.4-150200.3.6.1 | fixed |
| Suse | libgit2 | manager server module 4.3 | 0.28.4-150200.3.6.1 | fixed |
| Suse | libgit2 | linux enterprise real time 15 sp3 | 0.28.4-150200.3.6.1 | fixed |
| Opensuse | libgit2 | leap 15.4 | 0.28.4-150200.3.6.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libgit2 | source | sid | 1.5.1+ds-1 | not yet assigned | Not reported | [1029368] |
| Debian | libgit2 | source | forky | 1.5.1+ds-1 | not yet assigned | Not reported | [1029368] |
| Debian | libgit2 | source | trixie | 1.5.1+ds-1 | not yet assigned | Not reported | [1029368] |
| Debian | libgit2 | source | bookworm | 1.5.1+ds-1 | not yet assigned | Not reported | [1029368] |
| Crates.Io | libgit2-sys | crates.io | Not reported | 0.13.5 | Not reported | GHSA-M4CH-RFV5-X5G3 | Not reported |
| Crates.Io | git2 | crates.io | Not reported | 0.16.1 | Not reported | GHSA-M4CH-RFV5-X5G3 | Not reported |
| Ubuntu | libgit2 | deb | pro | 0.26.0+dfsg.1-1.1ubuntu0.2+esm1 | Not reported | UBUNTU-CVE-2023-22742 | Not reported |
| Ubuntu | libgit2 | deb | 20.04 | 0.28.4+dfsg.1-2ubuntu0.1 | Not reported | UBUNTU-CVE-2023-22742 | Not reported |
| Ubuntu | libgit2 | deb | 22.04 | 1.1.0+dfsg.1-4.1ubuntu0.1 | Not reported | UBUNTU-CVE-2023-22742 | Not reported |
| Suse | libgit2 | rpm | linux enterprise module for development tools 15 sp4 | 1.3.0-150400.3.6.1 | Not reported | SUSE-SU-2023:1788-1 | Not reported |
| Opensuse | libgit2 | rpm | leap 15.4 | 1.3.0-150400.3.6.1 | Not reported | SUSE-SU-2023:1788-1 | Not reported |
| Opensuse | libgit2 | rpm | leap 15.4 | 0.26.8-150000.3.18.1 | Not reported | SUSE-SU-2023:1570-1 | Not reported |
| Opensuse | libgit2 | rpm | tumbleweed | 1.5.1-1.1 | Not reported | OPENSUSE-SU-2024:12632-1 | Not reported |
| Suse | libgit2 | rpm | manager server module 4.2 | 0.28.4-150200.3.6.1 | Not reported | SUSE-SU-2023:1909-1 | Not reported |
| Suse | libgit2 | rpm | manager server module 4.3 | 0.28.4-150200.3.6.1 | Not reported | SUSE-SU-2023:1909-1 | Not reported |
| Suse | libgit2 | rpm | linux enterprise real time 15 sp3 | 0.28.4-150200.3.6.1 | Not reported | SUSE-SU-2023:1909-1 | Not reported |
| Opensuse | libgit2 | rpm | leap 15.4 | 0.28.4-150200.3.6.1 | Not reported | SUSE-SU-2023:1909-1 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://cert-portal.siemens.com/productcert/csaf/ssa-806742.json]
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2023_1570-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-22742]
- [https://osv.dev/vulnerability/GHSA-m4ch-rfv5-x5g3]
- [https://osv.dev/vulnerability/SUSE-SU-2023:1570-1]
- [https://osv.dev/vulnerability/SUSE-SU-2023:1788-1]
- [https://osv.dev/vulnerability/SUSE-SU-2023:1909-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2023-22742]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:12632-1]
- [https://security-tracker.debian.org/tracker/CVE-2023-22742]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-22742.json]
[CISA cybersecurity advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]