1. Archivio CVE
  2. 2026
  3. CVE-2026-91769

CVE-2026-91769

4.3 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N 4.3 – Media

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
php php >= 8.2.0 < 8.2.34 –
php php >= 8.3.0 < 8.3.35 –
php php >= 8.4.0 < 8.4.26 –
php php >= 8.5.0 < 8.5.11 –
Tutte le 757 vulnerabilità di Php

Tipo di vulnerabilità

CWE-297 Improper Validation of Certificate with Host Mismatch

The product communicates with a host that provides a certificate, but the product does not properly ensure that the certificate is actually associated with that host.

Impatto sui sistemi

AmbitoImpatto
Controllo degli accessi Ottenere privilegi o assumere un’altra identità
Autenticazione, Altro Altro
Controllo degli accessi, Altro Ottenere privilegi o assumere un’altra identità, Altro

Come si previene

Architettura e progettazione In order to ensure data integrity, the certificate must be valid, and it must pertain to the site that is being accessed.Fully check the hostname of the certificate and provide the user with adequate information about the nature of the problem and how to proceed.
Sviluppo If certificate pinning is being used, ensure that all relevant properties of the certificate are fully validated before the certificate is pinned, including the hostname.
Sviluppo Be careful of other weaknesses in the code that checks the hostname, since it is still possible to incorrectly check the hostname. For example, attackers could create a certificate with a name that begins with a trusted name followed by a NUL byte, which could cause some string-based comparisons to only examine the portion that contains the trusted name.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 72 CVE di tipo CWE-297, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org