CVE Watchtower

CVE-2026-91767Php Heap-based Buffer Overflow

NVDCVSS scored by security@php.net

Vulnerability Summary

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.
Severity Level
MEDIUM(6.5)
Published Date
Sep 25, 2026
Last Modified
Oct 27, 2026
Exploitation Status
No confirmed exploitation yet
CVE Record Status
Published
EPSS Score (30-Day)
0.15%Probability
Root Weakness (CWE)
The buffer being overwritten is allocated in the heap portion of memory.
CVSS v3.1 Base Metrics — Score 6.5 (MEDIUM)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack VectorAdjacent
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityNone
AvailabilityNone

Affected & Patched Versions

Affected Versions
  • Php >= 8.2.0 and < 8.2.34
  • Php >= 8.3.0 and < 8.3.35
  • Php >= 8.4.0 and < 8.4.26
  • Php >= 8.5.0 and < 8.5.11
  • PHP Group PHP >= 8.2.* and < 8.2.34
  • PHP Group PHP >= 8.3.* and < 8.3.35
  • PHP Group PHP >= 8.4.* and < 8.4.26
  • PHP Group PHP >= 8.5.* and < 8.5.11
Patched Versions
  • Php 8.2.34
  • Php 8.3.35
  • Php 8.4.26
  • Php 8.5.11
  • PHP Group PHP 8.2.34
  • PHP Group PHP 8.3.35
  • PHP Group PHP 8.4.26
  • PHP Group PHP 8.5.11

What to do

Fix it during your normal patch cycle. No exploitation is confirmed yet.

  1. Check whether you run Php and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Sep 25, 2026Published
  • Oct 27, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Php CVEsYou are reading CVE-2026-91767. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Sep 25, 2026 22:57 UTC