CVE-2026-53583

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.
Configurations

No configuration.

History

26 Oct 2026, 10:10

Type Values Removed Values Added
Summary
  • (es) libgit2 es una implementación portátil en C de los métodos centrales de Git proporcionada como una biblioteca enlazable con una API sólida, permitiendo integrar la funcionalidad de Git en su aplicación. Antes de 1.8.6 y 1.9.5, verify_server_cert en src/libgit2/streams/openssl.c usa un resultado !!memcmp invertido en la rama GEN_IPADD al comparar un host literal de IP con un SubjectAltName de IP de certificado. Las compilaciones de OpenSSL rechazan las direcciones IP coincidentes y aceptan las direcciones IP no coincidentes, permitiendo a un atacante de red con un certificado de confianza de CA que contenga cualquier SubjectAltName de IP interceptar conexiones de libgit2 a URLs HTTPS literales de IP. La validación de DNS SubjectAltName y los backends TLS que no son de OpenSSL no se ven afectados. Este problema está solucionado en las versiones 1.8.6 y 1.9.5.

Information

Published : 2026-08-20 19:16

Updated : 2026-10-26 10:10


NVD link : CVE-2026-53583

Mitre link : CVE-2026-53583

CVE.ORG link : CVE-2026-53583


JSON object : View

Products Affected

No product.

CWE
CWE-295

Improper Certificate Validation

CWE-297

Improper Validation of Certificate with Host Mismatch