CVE-2026-91767

NameCVE-2026-91767
Descriptionphp_openssl_matches_wildcard_name() in ext/openssl/xp_ssl.c underflows the length argument passed to memchr() when a TLS server certificate presents a wildcard name whose literal characters are together longer than the hostname being verified. A malicious server presenting such a certificate makes the PHP client read up to SIZE_MAX bytes past the end of a heap allocation. The path is reachable from any default client stream, because verify_peer_name is enabled by default.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-6514-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
php8.2 (PTS)bookworm8.2.32-1~deb12u1vulnerable
bookworm (security)8.2.33-1~deb12u1vulnerable
php8.4 (PTS)trixie8.4.24-1~deb13u1vulnerable
trixie (security)8.4.26-1~deb13u1fixed
forky, sid8.4.24-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
php8.2source(unstable)(unfixed)
php8.4sourcetrixie8.4.26-1~deb13u1DSA-6514-1
php8.4source(unstable)(unfixed)

Notes

https://github.com/php/php-src/security/advisories/GHSA-xr7j-rvgx-xq5p
https://github.com/php/php-src/blob/php-8.4.26/NEWS

Search for package or bug name: Reporting problems