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.
{
"license": "CC-BY-4.0",
"sources": [
{
"database_specific": {
"status": "Received"
},
"id": "CVE-2026-53583",
"published": "2026-08-20T19:16:54.500Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-53583",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-53583",
"modified": "2026-08-20T19:16:54.500Z",
"imported": "2026-08-21T20:45:22.660Z"
},
{
"id": "EUVD-2026-63549",
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-63549",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-63549",
"published": "2026-08-20T18:39:03Z",
"modified": "2026-08-20T19:04:42Z",
"affected": {
"libgit2:libgit2": [
"1.9.0, < 1.9.5",
"< 1.8.6"
]
},
"imported": "2026-08-21T20:45:01.753Z"
}
]
}