Bug 2520694 (CVE-2026-53583) - CVE-2026-53583 libgit2: libgit2: Network attacker can intercept HTTPS connections via inverted IP SubjectAltName comparison
Summary: CVE-2026-53583 libgit2: libgit2: Network attacker can intercept HTTPS connect...
Keywords:
Status: NEW
Alias: CVE-2026-53583
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2521743 2521744 2521745 2521742
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-20 19:02 UTC by OSIDB Bzimport
Modified: 2026-08-24 07:55 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-20 19:02:40 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.