CVE-2026-91769
4.3
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| PHP Group | PHP | 8.2.* < 8.2.34 | affected |
| PHP Group | PHP | 8.3.* < 8.3.35 | affected |
| PHP Group | PHP | 8.4.* < 8.4.26 | affected |
| PHP Group | PHP | 8.5.* < 8.5.11 | affected |
Weaknesses
- CWE-297: CWE-297 Improper validation of certificate with host mismatch
References
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.