CVE-2026-91767: Heap-buffer-overflow in php_openssl_matches_wildcard_name on crafted server cert wildcard CN
Vulnerability summary
CVE-2026-91767 is a medium (CVSS 6.5) Heap-based Buffer Overflow vulnerability in php group php. EPSS estimates a 0.14% chance of exploitation in the next 30 days, higher than 3.4% of scored vulnerabilities.
Not severe (CVSS 6.5, adjacent network); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 13 · Related 8Timeline
- 25-09-2026PublishedVulnerability first disclosed.
- 28-09-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST6.5MediumCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.14%
Chance of exploitation in the next 30 days
Percentile
3%
Versus all other CVEs
30-day change
Increase +0.03 pp
From 0.11% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: adjacent network, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu7 products
- php5All versions (No fix recorded)
- php7.0All versions (No fix recorded) | < 7.0.33-0ubuntu0.16.04.16+esm21
- php7.2All versions (No fix recorded) | < 7.2.24-0ubuntu0.18.04.17+esm13
- php7.4All versions (No fix recorded) | < 7.4.3-4ubuntu2.29+esm4
- php8.1All versions (No fix recorded) | < 8.1.2-1ubuntu2.27
Alpine4 products
- php82< 8.2.35-r0
- php83< 8.3.36-r0 | < 8.3.35-r0
- php84< 8.4.27-r0 | < 8.4.26-r0
- php85< 8.5.12-r0 | < 8.5.11-r0
Debian2 products
- php8.2< 8.2.34-1~deb12u1
- php8.4< 8.4.26-1~deb13u1 | < 8.4.26-1
Php1 product
- php≥ 8.2.0, < 8.2.34 | ≥ 8.3.0, < 8.3.35 | ≥ 8.4.0, < 8.4.26 | ≥ 8.5.0, < 8.5.11
Php group1 product
- php≥ 8.2.*, < 8.2.34 | ≥ 8.3.*, < 8.3.35 | ≥ 8.4.*, < 8.4.26 | ≥ 8.5.*, < 8.5.11
5 vendors · 15 products