
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-53583 is an inverted IP SubjectAltName (SAN) comparison vulnerability in the OpenSSL TLS backend of libgit2 that allows network attackers to perform Man-in-the-Middle (MITM) attacks against clients connecting to IP-literal HTTPS URLs. The flaw affects all versions of libgit2 built with the OpenSSL backend (Linux/Unix systems); Fedora is not affected as it links the system PCRE2 instead of the bundled library. It was disclosed on July 18, 2026, with no vendor patch available at the time of disclosure. The CVSS v3.1 base score is 6.5 (Moderate) (GitHub Advisory).
The root cause is an inverted boolean logic error (CWE-295, CWE-297) in the verify_server_cert() function within src/libgit2/streams/openssl.c. The code uses !!memcmp(name, addr, namelen) to compare IP SAN entries: since memcmp() returns 0 for matching buffers, applying !! inverts the result — matching IPs yield matched = 0 (rejected) and mismatched IPs yield matched = 1 (accepted). Exploitation requires the attacker to be in a network MITM position, the target connection to use an IP-literal URL (e.g., https://203.0.113.10/repo.git), and the attacker to possess a valid CA-trusted certificate containing any IP SAN (not necessarily the target IP). A suggested fix patch has been published that replaces the faulty expression with matched = (addr && namelen == addrlen && memcmp(name, addr, namelen) == 0) (GitHub Advisory).
Successful exploitation allows a network attacker to bypass TLS certificate hostname verification for IP-literal HTTPS connections, enabling interception and modification of git traffic. Concrete consequences include code injection via malicious repository content, credential theft if authentication is performed over the intercepted connection, and supply chain attacks in CI/CD pipelines that use libgit2. Additionally, the inversion causes legitimate connections to IP-literal URLs with correctly configured certificates to be rejected, creating a denial-of-service condition for valid users (GitHub Advisory).
No public exploit code or evidence of in-the-wild exploitation has been reported as of the time of disclosure. The CVE status remains "Reserved" and no vendor patch is available. Detection plugins have been published by Nessus (IDs: 329273, 330052, 331309, 331305, 331312, 331302, 331311) and Qualys (ID: 6567117), indicating active scanner coverage. Exploitation is constrained by the requirement for a MITM network position and a valid CA-trusted certificate with any IP SAN, which limits opportunistic exploitation (GitHub Advisory, Feedly).
libgit2 with the OpenSSL backend (Linux/Unix systems) that connect to git repositories via IP-literal HTTPS URLs (e.g., https://192.168.1.10/repo.git).libgit2 client and the target git server.libgit2 client initiates a TLS handshake to the IP-literal URL, present the attacker-controlled certificate with a mismatched IP SAN.!!memcmp() logic, libgit2 incorrectly accepts the mismatched certificate (matched = 1), completing the TLS handshake with the attacker's server.https://<IP>/repo.git) where the server certificate's IP SAN does not match the destination IP; unexpected TLS certificate changes for known git server IPs.libgit2-based git client logs showing successful connections to IP-literal URLs with certificates that should have been rejected; absence of certificate validation errors where mismatches exist.No official vendor patch is available at the time of disclosure. The following mitigations are recommended:
libgit2-based applications to use hostname-based URLs (e.g., https://git.example.com/repo.git) instead of IP-literal URLs, as DNS SAN verification is not affected by this bug.!!memcmp() inversion; organizations can apply this patch and rebuild libgit2 from source.The vulnerability was reported by Pavel Kohout of Aisle Research and published as a GitHub Security Advisory (GHSA-h7gc-w2gg-p9xp) on July 18, 2026. OpenSUSE issued a security announcement, and multiple Fedora and Debian advisories were tracked via OSV and Linux security news outlets. Nessus and Qualys scanner plugins were rapidly published, indicating prompt uptake by the vulnerability management community (OpenSUSE Advisory, OSV).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."