CVE-2026-7259: ext-mbstring NULL Deref

CVE-2026-7259

NVD

Vulnerability Summary

In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, a mismatch between encoding lists in Oniguruma and mbfl leads to  a NULL pointer dereference, resulting in a segmentation fault and denial of service. The vulnerability is exploitable when user-controlled input can influence the encoding passed to mb_regex_encoding().
Severity Level
LOW
Published Date
May 10, 2026
Last Modified
May 11, 2026
Exploitation Status
No confirmed exploitation yet
EPSS Score (30-Day)
0.08%Probability
Root Weakness (CWE)
The product dereferences a pointer that it expects to be valid but is NULL, typically causing a crash or exit.

Affected & Patched Versions

Affected Versions
  • ext-mbstring < 8.5.6
  • ext-mbstring < 8.4.21
  • ext-mbstring < 8.3.31
  • ext-mbstring < 8.2.31
Patched Versions
  • ext-mbstring 8.5.6
  • ext-mbstring 8.4.21
  • ext-mbstring 8.3.31
  • ext-mbstring 8.2.31

What to do

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

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

Timeline

  • May 10, 2026Published
  • May 11, 2026Record last modified

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

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

Data last checked: Nov 29, 2026 20:13 UTC