# CVE-2026-7259: Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()

- Severity: Low 2.1 (CVSS:4.0, scored by php) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L/AU:Y/U:Amber`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-02)
- Published: 2026-05-10T04:13:26.766Z
- Modified: 2026-11-11T02:55:53.295Z
- Also known as: BIT-LIBPHP-2026-7259, BIT-PHP-2026-7259, BIT-PHP-MIN-2026-7259, GHSA-wm6j-2649-pv75
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: php

## Description

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().

(As written by CVE List.)

## Affected

- mbstring: from 8.2.* before 8.2.31; from 8.3.* before 8.3.31; from 8.4.* before 8.4.21; from 8.5.* before 8.5.6
- php php: from 8.2.0 before 8.2.31; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6
- libphp (Bitnami): from 8.2.0 before 8.2.31; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6
- php (Bitnami): from 8.2.0 before 8.2.31; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6
- php-min (Bitnami): from 8.2.0 before 8.2.31; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6

## Every score

- php: CVSS:4.0 2.1 Low `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L/AU:Y/U:Amber`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/php/php-src/security/advisories/GHSA-wm6j-2649-pv75> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-7259> (web)

## Sources

- CVE List: [CVE-2026-7259](https://www.cve.org/CVERecord?id=CVE-2026-7259), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-7259](https://nvd.nist.gov/vuln/detail/CVE-2026-7259), Public domain, modified 2026-07-24
- Bitnami Vulnerability Database: [BIT-LIBPHP-2026-7259](https://osv.dev/vulnerability/BIT-LIBPHP-2026-7259), Apache-2.0, modified 2026-11-11
- Bitnami Vulnerability Database: [BIT-PHP-2026-7259](https://osv.dev/vulnerability/BIT-PHP-2026-7259), Apache-2.0, modified 2026-11-11
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2026-7259](https://osv.dev/vulnerability/BIT-PHP-MIN-2026-7259), Apache-2.0, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-7259 · Whole record: https://cve.day/CVE-2026-7259.json · Rebuilt by cve.day 2026-11-25T22:59:21.167Z
