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

Read the record on cve.org

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

CVSSScoreVectorSource
3.14.3 MediumCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:Nphp

Weaknesses

  • CWE-297 Improper validation of certificate with host mismatch

Affected Products

ProductVersions
PHPPHP Group
  • 8.2.* to before 8.2.34Affected
  • 8.3.* to before 8.3.35Affected
  • 8.4.* to before 8.4.26Affected
  • 8.5.* to before 8.5.11Affected

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.