# CVE-2026-7259: Null pointer dereference in php\_mb\_check\_encoding() via mb\_ereg\_search\_init()

- Priority: **Routine**
- Reason: Not severe (CVSS 2.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-10 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2026-7259, DEBIAN-CVE-2026-7259, CGA-4whf-5gp5-h3xv, CGA-83jf-jhqq-vhv7, ALPINE-CVE-2026-7259
- Record: https://cvemate.com/vulnerability/CVE-2026-7259 · JSON: https://cvemate.com/vulnerability/CVE-2026-7259/json

## Description

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

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 0.186%, percentile 8.55%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine php81 (Alpine Linux): \< 8.1.34-r0
- alpine php82 (Alpine Linux): \< 8.2.31-r0
- alpine php83 (Alpine Linux): \< 8.3.36-r0 \| \< 8.3.31-r0
- alpine php84 (Alpine Linux): \< 8.4.27-r0 \| \< 8.4.21-r0
- alpine php85 (Alpine Linux): \< 8.5.6-r0
- chainguard php-8.2 (Chainguard): \< 8.2.31-r0
- wolfi php-8.2 (Wolfi): \< 8.2.31-r0
- debian php8.2 (Debian): \< 8.2.31-1~deb12u1
- debian php8.4 (Debian): \< 8.4.21-1~deb13u1 \| \< 8.4.21-1
- ubuntu php8.1 (Ubuntu): \< 8.1.2-1ubuntu2.24
- ubuntu php8.3 (Ubuntu): \< 8.3.6-0ubuntu0.24.04.9
- ubuntu php8.4 (Ubuntu): \< 8.4.11-1ubuntu1.2
- ubuntu php8.5 (Ubuntu): \< 8.5.4-0ubuntu1.1
- php group php: ≥ 8.2.\*, \< 8.2.31 \| ≥ 8.3.\*, \< 8.3.31 \| ≥ 8.4.\*, \< 8.4.21 \| ≥ 8.5.\*, \< 8.5.6
- php php: ≥ 8.2.0, \< 8.2.31 \| ≥ 8.3.0, \< 8.3.31 \| ≥ 8.4.0, \< 8.4.21 \| ≥ 8.5.0, \< 8.5.6

## References

- <https://github.com/php/php-src/security/advisories/GHSA-wm6j-2649-pv75>
- <https://ubuntu.com/security/CVE-2026-7259>
- <https://www.cve.org/CVERecord?id=CVE-2026-7259>
- <https://ubuntu.com/security/notices/USN-8336-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-7259>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-7259>
- <https://security.alpinelinux.org/vuln/CVE-2026-7259>

---

Data as of 2026-12-05T03:32:14.947Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
