# CVE-2026-91767: Heap-buffer-overflow in php\_openssl\_matches\_wildcard\_name on crafted server cert wildcard CN

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, adjacent network); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-25 · Modified: 2026-09-28
- Aliases: UBUNTU-CVE-2026-91767, DEBIAN-CVE-2026-91767, ALPINE-CVE-2026-91767
- Record: https://cvemate.com/vulnerability/CVE-2026-91767 · JSON: https://cvemate.com/vulnerability/CVE-2026-91767/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.139%, percentile 3.456%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine php82 (Alpine Linux): \< 8.2.35-r0
- alpine php83 (Alpine Linux): \< 8.3.36-r0 \| \< 8.3.35-r0
- alpine php84 (Alpine Linux): \< 8.4.27-r0 \| \< 8.4.26-r0
- alpine php85 (Alpine Linux): \< 8.5.12-r0 \| \< 8.5.11-r0
- debian php8.2 (Debian): \< 8.2.34-1~deb12u1
- debian php8.4 (Debian): \< 8.4.26-1~deb13u1 \| \< 8.4.26-1
- ubuntu php5 (Ubuntu): All versions (No fix recorded)
- ubuntu php7.0 (Ubuntu): All versions (No fix recorded) \| \< 7.0.33-0ubuntu0.16.04.16+esm21
- ubuntu php7.2 (Ubuntu): All versions (No fix recorded) \| \< 7.2.24-0ubuntu0.18.04.17+esm13
- ubuntu php7.4 (Ubuntu): All versions (No fix recorded) \| \< 7.4.3-4ubuntu2.29+esm4
- ubuntu php8.1 (Ubuntu): All versions (No fix recorded) \| \< 8.1.2-1ubuntu2.27
- ubuntu php8.3 (Ubuntu): All versions (No fix recorded) \| \< 8.3.6-0ubuntu0.24.04.12
- ubuntu php8.5 (Ubuntu): All versions (No fix recorded) \| \< 8.5.9-0ubuntu2 \| \< 8.5.4-0ubuntu1.4
- php group php: ≥ 8.2.\*, \< 8.2.34 \| ≥ 8.3.\*, \< 8.3.35 \| ≥ 8.4.\*, \< 8.4.26 \| ≥ 8.5.\*, \< 8.5.11
- php 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

## References

- <https://github.com/php/php-src/security/advisories/GHSA-xr7j-rvgx-xq5p>
- <https://ubuntu.com/security/CVE-2026-91767>
- <https://www.cve.org/CVERecord?id=CVE-2026-91767>
- <https://github.com/php/php-src/blob/php-8.4.26/NEWS>
- <https://security-tracker.debian.org/tracker/CVE-2026-91767>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-91767>
- <https://ubuntu.com/security/notices/USN-8936-1>
- <https://security.alpinelinux.org/vuln/CVE-2026-91767>

---

Data as of 2026-12-05T03:01:19.963Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
