Vendors › PHP

CVE-2026-7259

Low (no CVSS assigned) EPSS 0.3% PHP · mbstring

Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()

The following PHP code triggers a segmentation fault due to a NULL pointer dereference: php <?php mb_regex_encoding('iso-8859-11'); $test_str = 'x'; if (mb_ereg_search_init($test_str)) { $val = mb_ereg_search_pos("x"); var_dump($val); } else { var_dump(false); } The crash occurs due to a mismatch between Oniguruma and mbfl encoding support: 1. **Oniguruma** (the regex library) supports iso-8859-11 (Thai encoding) 2.

Published2026-05-07
Updated2026-05-07
AffectedPHP versions < 8.2.31; PHP versions < 8.3.31; PHP versions < 8.4.21; PHP versions < 8.5.6
FixUpgrade to 8.2.31, 8.3.31, 8.4.21, 8.5.6 (first fixed release per supported branch).
Vendor advisoryhttps://github.com/php/php-src/security/advisories/GHSA-wm6j-2649-pv75

CVEs (1)

CVECWETypeImpactLinks
CVE-2026-7259CWE-476Memory CorruptionDenial of ServiceNVD · CVE.org · EUVD

CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.

Same CVE in other advisories

Open in the CVEMesh app Create a free account

Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.

CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.