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.
| Published | 2026-05-07 |
| Updated | 2026-05-07 |
| Affected | PHP versions < 8.2.31; PHP versions < 8.3.31; PHP versions < 8.4.21; PHP versions < 8.5.6 |
| Fix | Upgrade to 8.2.31, 8.3.31, 8.4.21, 8.5.6 (first fixed release per supported branch). |
| Vendor advisory | https://github.com/php/php-src/security/advisories/GHSA-wm6j-2649-pv75 |
CVEs (1)
| CVE | CWE | Type | Impact | Links |
|---|---|---|---|---|
| CVE-2026-7259 | CWE-476 | Memory Corruption | Denial of Service | NVD · CVE.org · EUVD |
CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.
Same CVE in other advisories
- K000162837 — F5 · N/A (F5 products not affected) · 2026-08-07
PHP vulnerability CVE-2026-7259 - RHSA-2026:33449 — Red Hat · High (7.7) · 2026-06-30
Red Hat Security Advisory: php security update - RHSA-2026:23388 — Red Hat · High (7.7) · 2026-06-04
Red Hat Security Advisory: php security update
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.