CVEfocus › CVE database › CVE-2026-53583

CVE-2026-53583libgit2: Inverted IP SubjectAltName Comparison in OpenSSL Backend

CVSS 6.5 MediumEPSS 0.2% (higher than 9% of CVEs)Published 2026-08-20Updated 2026-08-20Assigner: GitHub_M

libgit2 is a portable C implementation of the Git core methods provided as a linkable library with a solid API, allowing to build Git functionality into your application. Prior to 1.8.6 and 1.9.5, verify_server_cert in src/libgit2/streams/openssl.c uses an inverted !!memcmp result in the GEN_IPADD branch when comparing an IP-literal host with a certificate IP SubjectAltName. OpenSSL builds reject matching IP addresses and accept mismatched IP addresses, allowing a network attacker with a CA-trusted certificate containing any IP SubjectAltName to intercept libgit2 connections to IP-literal HTTPS URLs. DNS SubjectAltName validation and non-OpenSSL TLS backends are not affected. This issue is fixed in versions 1.8.6 and 1.9.5.

CWE-295CWE-297

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
40Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libgit2Fixed1.9.1+ds-1ubuntu1.3UBUNTU-CVE-2026-53583
Ubuntu 24.04libgit2Fixed1.7.2+ds-1ubuntu3.3UBUNTU-CVE-2026-53583
Ubuntu 22.04libgit2Fix pendingUBUNTU-CVE-2026-53583
Ubuntu 20.04libgit2Fix pendingUBUNTU-CVE-2026-53583
Ubuntu 18.04libgit2Fix pendingUBUNTU-CVE-2026-53583
Ubuntu 16.04libgit2Fix pendingUBUNTU-CVE-2026-53583
Ubuntu 14.04libgit2Fix pendingUBUNTU-CVE-2026-53583
Debian 14libgit2Fixed1.9.6+ds-1DEBIAN-CVE-2026-53583
Debian 13libgit2Fixed1.9.0+ds-2+deb13u1DEBIAN-CVE-2026-53583
Red Hat Enterprise Linux 10cargoFix pending
Fix deferred
Red Hat Enterprise Linux 10clippyFix pending
Fix deferred
Red Hat Enterprise Linux 10rustFix pending
Fix deferred
Red Hat Enterprise Linux 10rust-analyzerFix pending
Fix deferred
Red Hat Enterprise Linux 10rust-debugger-commonFix pending
Fix deferred
Red Hat Enterprise Linux 10rust-docFix pending
Fix deferred
Red Hat Enterprise Linux 10rust-gdbFix pending
Fix deferred
Red Hat Enterprise Linux 10rust-lldbFix pending
Fix deferred
Red Hat Enterprise Linux 10rust-srcFix pending
Fix deferred
Red Hat Enterprise Linux 10rust-std-staticFix pending
Fix deferred
Red Hat Enterprise Linux 10rust-std-static-aarch64-unknown-none-softfloatFix pending
Fix deferred
Red Hat Enterprise Linux 10rust-std-static-wasm32-unknown-unknownFix pending
Fix deferred
Red Hat Enterprise Linux 10rust-std-static-wasm32-wasip1Fix pending
Fix deferred
Red Hat Enterprise Linux 10rust-std-static-x86_64-unknown-noneFix pending
Fix deferred
Red Hat Enterprise Linux 10rust-toolsetFix pending
Fix deferred
Red Hat Enterprise Linux 10rust-toolset-srpm-macrosFix pending
Fix deferred
Red Hat Enterprise Linux 10rustfmtFix pending
Fix deferred
Red Hat Enterprise Linux 9cargoFix pending
Fix deferred
Red Hat Enterprise Linux 9clippyFix pending
Fix deferred
Red Hat Enterprise Linux 9rustFix pending
Fix deferred
Red Hat Enterprise Linux 9rust-analysisFix pending
Fix deferred
Red Hat Enterprise Linux 9rust-analyzerFix pending
Fix deferred
Red Hat Enterprise Linux 9rust-debugger-commonFix pending
Fix deferred
Red Hat Enterprise Linux 9rust-docFix pending
Fix deferred
Red Hat Enterprise Linux 9rust-gdbFix pending
Fix deferred
Red Hat Enterprise Linux 9rust-lldbFix pending
Fix deferred
Red Hat Enterprise Linux 9rust-srcFix pending
Fix deferred
Red Hat Enterprise Linux 9rust-std-staticFix pending
Fix deferred
Red Hat Enterprise Linux 9rust-std-static-wasm32-unknown-unknownFix pending
Fix deferred
Red Hat Enterprise Linux 9rust-std-static-wasm32-wasiFix pending
Fix deferred
Red Hat Enterprise Linux 9rust-std-static-wasm32-wasip1Fix pending
Fix deferred
Red Hat Enterprise Linux 9rust-toolsetFix pending
Fix deferred
Red Hat Enterprise Linux 9rustfmtFix pending
Fix deferred
Red Hat Enterprise Linux 8libgit2Fix pending
Fix deferred
Red Hat Enterprise Linux 8libgit2-develFix pending
Fix deferred
Alpine Linux 3.24libgit2Fixed1.9.6-r0ALPINE-CVE-2026-53583
Alpine Linux 3.23libgit2Fixed1.9.6-r0ALPINE-CVE-2026-53583

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.