PHP: 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. A certificate trusted by the client for one name can therefore be used to impersonate another.
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| PHP (intérprete) | PHP | >= 8.2.0, < 8.2.34, >= 8.3.0, < 8.3.35, >= 8.4.0, < 8.4.26, >= 8.5.0, < 8.5.11 ext-openssl: <8.2.34; <8.3.35; <8.4.26; <8.5.11 |
8.2.34, 8.3.35, 8.4.26, 8.5.11 |
Referencias
- Vector CVSS
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N- Debilidad (CWE)
-- Plataforma
- PHP
- Paquete
PHP- Publicada
- 24.09.2026
- Actualizado
- 03.11.2026 19:17
Fuentes y licencias
PHP Security Advisories - GHSA-vvx9-73fr-5jjx - CVE Terms of Use
Copyright 1999-2026 The MITRE Corporation
Copyright 1999-2026 The MITRE Corporation
CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.
https://www.cve.org/Legal/TermsOfUseHistorial de vulnerabilidades: PHP
Todas las vulnerabilidades publicadas de este paquete (PHP (intérprete)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 78
- Primera → última
- 02.2023 11.2026
- Sin corrección
- 1
- Explotada en ataques
- 3
Distribución por gravedad
- Crítica 11
- Alta 16
- Media 42
- Baja 9
Divulgaciones por año
- 2023: 5
- 2024: 17
- 2025: 12
- 2026: 44
-
PHP: TLS Hostname Verification Falls Back to CN After SAN Mismatch esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.