ADVISORIES

Alpine Security Database

ALPINE-CVE-2026-91769

Details

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 packages

EcosystemPackageAffected versions
Alpine:v3.22php82
All versions before 8.2.35-r0 (fixed in 8.2.35-r0)
Alpine:v3.22php83
All versions before 8.3.36-r0 (fixed in 8.3.36-r0)
Alpine:v3.23php83
All versions before 8.3.36-r0 (fixed in 8.3.36-r0)
Alpine:v3.24php83
All versions before 8.3.35-r0 (fixed in 8.3.35-r0)
Alpine:v3.22php84
All versions before 8.4.27-r0 (fixed in 8.4.27-r0)
Alpine:v3.23php84
All versions before 8.4.27-r0 (fixed in 8.4.27-r0)
Alpine:v3.24php84
All versions before 8.4.26-r0 (fixed in 8.4.26-r0)
Alpine:v3.23php85
All versions before 8.5.12-r0 (fixed in 8.5.12-r0)
Alpine:v3.24php85
All versions before 8.5.11-r0 (fixed in 8.5.11-r0)

References