CVE-2026-91769
TLS Hostname Verification Falls Back to CN After SAN Mismatch
- State
- Published
- Severity
- 4.3 Medium
- Published
- Sep 25, 2026
- Updated
- Oct 4, 2026
- Reserved
- Sep 15, 2026
Description
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 4.3 Medium | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | php |
Weaknesses
- CWE-297 Improper validation of certificate with host mismatch
Affected Products
| Product | Versions |
|---|---|
PHPPHP Group |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.