UBUNTU-CVE-2026-91767: Medium severity ubuntu/php7.0 vulnerability
phpopensslmatcheswildcardname() in ext/openssl/xpssl.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 SIZEMAX bytes past the end of a heap allocation. The path is reachable from any default client stream, because verifypeername is enabled by default.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/php7.0to a version that resolves this vulnerability.Fixed in 7.0.33-0ubuntu0.16.04.16+esm21 - Upgrade
Upgrade
ubuntu/php7.2to a version that resolves this vulnerability.Fixed in 7.2.24-0ubuntu0.18.04.17+esm13 - Upgrade
Upgrade
ubuntu/php7.4to a version that resolves this vulnerability.Fixed in 7.4.3-4ubuntu2.29+esm4 - Upgrade
Upgrade
ubuntu/php8.1to a version that resolves this vulnerability.Fixed in 8.1.2-1ubuntu2.27 - Upgrade
Upgrade
ubuntu/php8.3to a version that resolves this vulnerability.Fixed in 8.3.6-0ubuntu0.24.04.12 - Upgrade
Upgrade
ubuntu/php8.5to a version that resolves this vulnerability.Fixed in 8.5.9-0ubuntu2 - Upgrade
Upgrade
ubuntu/php8.5to a version that resolves this vulnerability.Fixed in 8.5.4-0ubuntu1.4