CVE-2026-91769
MediumCVSS 4.3Exploitation Probability (EPSS)
Low risk3th percentile - higher than 3% of all known CVEs
Summary
PHP's OpenSSL stream peer verification checks subjectAltName entries first and falls back to Common Name when no entry matches. RFC 6125 requires CN to be ignored once the certificate presents any service identity, so a certificate with a non-matching DNS SAN was still accepted when its CN matched the requested peer_name.
Risk Assessment
A certificate trusted by the client for one name can be used to impersonate another, enabling man-in-the-middle attacks and data interception.
Recommendation
Update PHP to a version containing the fix or disable CN fallback in certificate verification if possible.
Other vulnerabilities in PHP OpenSSL
Original NVD description (English source)
PHP's OpenSSL stream peer verification checks the certificate's subjectAltName entries first and, whenever no entry matches, falls back to the Common Name. RFC 6125 requires the CN to be ignored once the certificate presents any service identity, so a certificate carrying a non-matching DNS SAN was still accepted when its CN matched the requested peer_name. A certificate trusted by the client for one name can therefore be used to impersonate another.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

