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.
Fix
Patch, vendor advisory and mitigation references on NVD 1
- https://github.com/php/php-src/security/advisories/GHSA-vvx9-73fr-5jjx Vendor Advisory, Exploit
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 4.3 · phpNVD modified 2026-10-23 13:20
Affected (CPE criteria) 1
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
References 1
- https://github.com/php/php-src/security/advisories/GHSA-vvx9-73fr-5jjx Vendor Advisory, Exploit