CVE-2026-91769
TLS hostname verification falls back to CN after SAN mismatch
| Publication Date | 2026-09-25 |
|---|---|
| Severity | Moderate |
| Type | Cross-Site Request Forgery |
| Affected PHP Versions |
|
| Fixed Product Versions |
|
CVE Details
The vulnerability lies in PHP’s OpenSSL stream peer verification routine, which first checks the certificate’s subjectAltName entries and, when none match, falls back to using the Common Name (CN). RFC?6125 states that the CN must be ignored once any service identity is present, so a certificate that contains a non?matching DNS SAN but a matching CN is still accepted, allowing a trusted certificate for one name to be used to impersonate another.
Recommendations
Consider using cURL instead of the HTTP stream wrapper to perform HTTP requests. If you cannot, we recommend updating to a patched PHP version.