cve.bz

CVE-2026-7259 php php: NULL Pointer Dereference

2.1 lowEPSS 0.2%

Low (2.1) in php php. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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

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

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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 8th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-05-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-7259 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-7259?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-7259?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-7259 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
PHP Group PHPfrom 8.2.* before 8.2.31
PHP Group PHPfrom 8.3.* before 8.3.31
PHP Group PHPfrom 8.4.* before 8.4.21
PHP Group PHPfrom 8.5.* before 8.5.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12php8.28.2.31-1~deb12u1DEBIAN-CVE-2026-7259 DSA-6255-1
Debian13php8.48.4.21-1~deb13u1DEBIAN-CVE-2026-7259 DSA-6256-1
Debian14php8.48.4.21-1DEBIAN-CVE-2026-7259
Ubuntu22.04:LTSphp8.18.1.2-1ubuntu2.24UBUNTU-CVE-2026-7259
Ubuntu24.04:LTSphp8.38.3.6-0ubuntu0.24.04.9UBUNTU-CVE-2026-7259
Ubuntu25.10php8.48.4.11-1ubuntu1.2UBUNTU-CVE-2026-7259
Ubuntu26.04:LTSphp8.58.5.4-0ubuntu1.1UBUNTU-CVE-2026-7259
Red Hatenterprise_linux:9::appstreamphp, php-gd, php-cli and 47 more0:8.0.30-6.el9_8RHSA-2026:33449
Red Hatenterprise_linux:10.2php, php-gd, php-cli and 47 more0:8.3.31-1.el10_2RHSA-2026:23388
openSUSETumbleweedphp88.5.6-1.1openSUSE-SU-2026:10747-1
AlmaLinux9php, php-gd, php-cli and 22 more8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux10php, php-gd, php-cli and 22 more8.3.31-1.el10_2ALSA-2026:23388
Rocky Linux9php0:8.0.30-6.el9_8RLSA-2026:33449
Rocky Linux10php0:8.3.31-1.el10_2RLSA-2026:23388
Alpinev3.19php818.1.34-r0ALPINE-CVE-2026-7259
Alpinev3.22php828.2.31-r0ALPINE-CVE-2026-7259
Alpinev3.22php838.3.36-r0ALPINE-CVE-2026-7259
Alpinev3.22php848.4.27-r0ALPINE-CVE-2026-7259
Alpinev3.23, v3.24php838.3.31-r0ALPINE-CVE-2026-7259
Alpinev3.23, v3.24php848.4.21-r0ALPINE-CVE-2026-7259
Alpinev3.23, v3.24php858.5.6-r0ALPINE-CVE-2026-7259
Azure Linux3php8.3.31-1AZL-86364
Alpaquita23php818.1.34-r1BELL-CVE-2026-7259
Alpaquita25, streamphp838.3.31-r0BELL-CVE-2026-7259

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

To exploit this issue, an attacker needs to be able to influence the encoding passed to `mb_regex_encoding()` in a way that triggers a mismatch between the Oniguruma and mbfl encoding support. Also, the application must use the mbregex search APIs, allowing the attacker to cause a NULL pointer dereference. Due to these reasons, this flaw has been rated with a moderate severity.

Red Hat's mitigation

To mitigate this vulnerability, implement an encoding validation mechanism to reject the specific encodings and aliases that cause the mismatch between Oniguruma and mbfl. The following encodings and aliases are known to trigger this issue: iso-8859-11 and ISO8859-11, UJIS (EUC-JP alias), GB-2312 (EUC-CN alias), KOI-8R (KOI8 alias), and US_ASCII or ISO646 (ASCII aliases).

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10php-0:8.3.31-1.el10_2Fixed 2026-06-04RHSA-2026:23388
Red Hat Enterprise Linux 9php-0:8.0.30-6.el9_8Fixed 2026-06-30RHSA-2026:33449
Red Hat Enterprise Linux 10php8.4Fix deferred
Red Hat Enterprise Linux 6phpNot affected
Red Hat Enterprise Linux 7phpNot affected
Red Hat Enterprise Linux 8php:7.4/phpNot affected
Red Hat Enterprise Linux 8php:8.2/phpFix deferred
Red Hat Enterprise Linux 9php:8.2/phpFix deferred
Red Hat Enterprise Linux 9php:8.3/phpFix deferred
Red Hat Hardened ImagesphpNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-7259.

References

Check your stackJSON