CVE-2026-53583
Medium · 6.5CVSS
6.5
EPSS
0.2%
Published
Aug 20, 2026
CISA due date
—
Cloudanix analysis
A flaw in how certain Git library versions check website certificates for connections using numeric addresses can let an attacker secretly read or change code being downloaded.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Library
- Class
- Cryptographic Weakness
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Inverted !!memcmp logic in the GEN_IPADD branch of verify_server_cert causes OpenSSL-based libgit2 builds to reject correct IP-literal matches and accept mismatched IP SubjectAltName entries, enabling MITM against IP-literal HTTPS URLs when the attacker holds a CA-trusted certificate containing any IP SAN.
Why it matters to the business
Organizations using affected libgit2 versions for Git operations over HTTPS to IP addresses face silent interception of repository traffic and potential supply-chain compromise until packages are updated.
How an attack unfolds
An attacker positions a network MITM device, obtains a CA-trusted certificate containing an arbitrary IP SubjectAltName, and waits for a libgit2 client to connect to an IP-literal HTTPS URL; the flawed comparison accepts the certificate, allowing the attacker to decrypt, inspect, or modify Git traffic.
How to fix it
Upgrade libgit2 to 1.8.6, 1.9.5, or later; Red Hat users of libgit2-main must install version 1.9.7-1.hum1 or the corresponding RHSA-2026:59361 update. Non-OpenSSL TLS backends and DNS SAN validation paths are unaffected.
How to confirm the fix worked
Confirm the installed libgit2 version meets or exceeds 1.8.6 or 1.9.5; review build configuration to ensure OpenSSL is the active TLS backend when IP-literal URLs are used; re-test certificate validation with both matching and non-matching IP SAN certificates.
Typical attack path
- Obtain or compromise a CA-trusted certificate containing at least one IP SubjectAltName
- Position to perform network interception against the target IP-literal HTTPS endpoint
- Trigger a libgit2 client connection to an IP-literal HTTPS Git URL
- Exploit the inverted comparison to complete the TLS handshake with the attacker certificate
- Decrypt or tamper with Git protocol data in transit
How to detect it
Review TLS handshake logs and Git client error streams for unexpected certificate acceptance on IP-literal URLs; correlate with network flow data showing connections to unexpected intermediaries; examine build or dependency manifests for pre-1.8.6 or pre-1.9.5 libgit2 versions.
What your security team should do
- Prioritize upgrade of all libgit2 packages to the fixed versions listed in remediation guidance
- Inventory applications and build pipelines that statically or dynamically link libgit2
- Restrict Git operations to DNS-based hostnames where possible until patches are deployed
- Monitor EPSS and KEV updates for any future change in exploit availability
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-121565 Tanium addressed an improper certificate validation vulnerability in multiple products. CWE-295
- CVE-2026-121624 Nanosystems Supremo for Windows and macOS before 5.0.2.3874 contains an improper… CWE-295
- CVE-2026-115714 Improper Certificate Validation (CWE-295) in the operating system certificate bundle… CWE-295
- CVE-2026-121452 bbs-go through 4.4.6 contains an improper certificate validation vulnerability that… CWE-295
- CVE-2026-121392 FreeRDP before 3.32.2 contains an improper certificate validation vulnerability in… CWE-295
- CVE-2026-91897 Dell Alienware Command Center (AWCC), versions prior to 6.14.54.0, contain an Improper… CWE-295
- CVE-2026-120250 OpenAlgo 1.0.0.29 before 2.0.3.1 contains an improper certificate validation… CWE-295
- CVE-2026-118147 Improper certificate validation in Visual Studio allows an unauthorized attacker to… CWE-295