Vendors › PHP

CVE-2026-91769

Medium (4.3) EPSS 0.1% PHP · OpenSSL

TLS Hostname Verification Falls Back to CN After SAN Mismatch

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.

Published2026-09-24
Updated2026-10-04
AffectedPHP versions < 8.2.34; PHP versions < 8.3.35; PHP versions < 8.4.26; PHP versions < 8.5.11
FixUpgrade to 8.2.34, 8.3.35, 8.4.26, 8.5.11 (first fixed release per supported branch).
CVEMesh analysisThe vulnerability is a weakness in how PHP checks the identity of a website's certificate, allowing a non-matching DNS name to be accepted if the Common Name matches the requested peer name. The advisory does not state exploitation conditions. The most important action is to upgrade to PHP version 8.2.34, 8.3.35, 8.4.26, or 8.5.11.
Vendor states: "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."
AI-generated — see the vendor advisory for the authoritative text.
Vendor advisoryhttps://github.com/php/php-src/security/advisories/GHSA-vvx9-73fr-5jjx

CVEs (1)

CVECWETypeImpactLinks
CVE-2026-91769CWE-297OtherBypassNVD · CVE.org · EUVD

CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.

Same CVE in other advisories

Open in the CVEMesh app Create a free account

Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.

CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.