Vulnerability · Published May 10, 2026 · Assigned by php

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

Low 2.1

In plain English

A low-severity null pointer dereference in PHP from PHP Group. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 8% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)2.1Low
Exploit odds (30 days)0.2%top 91.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10php8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-bcmath8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-bcmath8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-cli8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-cli8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-common8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-common8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-dba8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-dba8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-dbg8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-dbg8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-devel8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-devel8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-embedded8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-embedded8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-enchant8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-enchant8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-ffi8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-ffi8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-fpm8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-fpm8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-gd8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-gd8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-gmp8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-gmp8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-intl8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-intl8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-ldap8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-ldap8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-mbstring8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-mbstring8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-mysqlnd8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-mysqlnd8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-odbc8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-odbc8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-opcache8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-opcache8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-pdo8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-pdo8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-pgsql8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-pgsql8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-process8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-process8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-snmp8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-snmp8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-soap8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-soap8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux:10php-xml8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux:9php-xml8.0.30-6.el9_8ALSA-2026:33449
Alpine:v3.22php828.2.31-r0ALPINE-CVE-2026-7259
Alpine:v3.22php838.3.36-r0ALPINE-CVE-2026-7259
Alpine:v3.23php838.3.31-r0ALPINE-CVE-2026-7259
Alpine:v3.24php838.3.31-r0ALPINE-CVE-2026-7259
Alpine:v3.22php848.4.27-r0ALPINE-CVE-2026-7259
Alpine:v3.23php848.4.21-r0ALPINE-CVE-2026-7259
Alpine:v3.24php848.4.21-r0ALPINE-CVE-2026-7259
Alpine:v3.23php858.5.6-r0ALPINE-CVE-2026-7259
Alpine:v3.24php858.5.6-r0ALPINE-CVE-2026-7259
Debian:12php8.28.2.31-1~deb12u1DEBIAN-CVE-2026-7259
Debian:13php8.48.4.21-1~deb13u1DEBIAN-CVE-2026-7259
Debian:14php8.48.4.21-1DEBIAN-CVE-2026-7259
Rocky Linux:10php0:8.3.31-1.el10_2RLSA-2026:23388
Rocky Linux:9php0:8.0.30-6.el9_8RLSA-2026:33449
Ubuntu:22.04:LTSphp8.18.1.2-1ubuntu2.24UBUNTU-CVE-2026-7259
Ubuntu:24.04:LTSphp8.38.3.6-0ubuntu0.24.04.9UBUNTU-CVE-2026-7259
Ubuntu:25.10php8.48.4.11-1ubuntu1.2UBUNTU-CVE-2026-7259
Ubuntu:26.04:LTSphp8.58.5.4-0ubuntu1.1UBUNTU-CVE-2026-7259

Affected products (as reported)

VendorProductVersions
PHP Group PHP 8.2.* – before 8.2.318.3.* – before 8.3.318.4.* – before 8.4.218.5.* – before 8.5.6

Weakness: CWE-476 · Vector: 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

References