ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2026-91767

Details

php_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.

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:16.04:LTSphp7.0
All versions before 7.0.33-0ubuntu0.16.04.16+esm21 (fixed in 7.0.33-0ubuntu0.16.04.16+esm21)
Ubuntu:Pro:18.04:LTSphp7.2
All versions before 7.2.24-0ubuntu0.18.04.17+esm13 (fixed in 7.2.24-0ubuntu0.18.04.17+esm13)
Ubuntu:Pro:20.04:LTSphp7.4
All versions before 7.4.3-4ubuntu2.29+esm4 (fixed in 7.4.3-4ubuntu2.29+esm4)
Ubuntu:22.04:LTSphp8.1
All versions before 8.1.2-1ubuntu2.27 (fixed in 8.1.2-1ubuntu2.27)
Ubuntu:24.04:LTSphp8.3
All versions before 8.3.6-0ubuntu0.24.04.12 (fixed in 8.3.6-0ubuntu0.24.04.12)
Ubuntu:26.10php8.5
All versions before 8.5.9-0ubuntu2 (fixed in 8.5.9-0ubuntu2)
Ubuntu:26.04:LTSphp8.5
All versions before 8.5.4-0ubuntu1.4 (fixed in 8.5.4-0ubuntu1.4)

References