CVEfocus › CVE database › CVE-2026-7259

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

CVSS 2.1 LowEPSS 0.2% (higher than 8% of CVEs)Published 2026-05-10Updated 2026-05-11Assigner: php

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

CWE-476

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Red Hat has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

119Fixed
25Fix pending
91Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04php8.5Fixed8.5.4-0ubuntu1.1UBUNTU-CVE-2026-7259
Ubuntu 25.10php8.4Fixed8.4.11-1ubuntu1.2UBUNTU-CVE-2026-7259
Ubuntu 24.04php8.3Fixed8.3.6-0ubuntu0.24.04.9UBUNTU-CVE-2026-7259
Ubuntu 22.04php8.1Fixed8.1.2-1ubuntu2.24UBUNTU-CVE-2026-7259
Debian 14php8.4Fixed8.4.21-1DEBIAN-CVE-2026-7259
Debian 13php8.4Fixed8.4.21-1~deb13u1DEBIAN-CVE-2026-7259
Debian 12php8.2Fixed8.2.31-1~deb12u1DEBIAN-CVE-2026-7259
Red Hat Enterprise Linux 10phpFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-bcmathFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-cliFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-commonFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-dbaFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-dbgFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-develFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-embeddedFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-enchantFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-ffiFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-fpmFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-gdFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-gmpFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-intlFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-ldapFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-mbstringFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-mysqlndFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-odbcFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-opcacheFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-pdoFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-pgsqlFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-processFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-snmpFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-soapFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php-xmlFixed0:8.3.31-1.el10_2RHSA-2026:23388
Red Hat Enterprise Linux 10php8.4Fix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-bcmathFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-cliFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-commonFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-dbaFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-dbgFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-develFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-embeddedFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-enchantFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-ffiFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-fpmFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-gdFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-gmpFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-intlFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-ldapFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-mbstringFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-mysqlndFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-odbcFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-opcacheFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-pdoFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-pgsqlFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-processFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-snmpFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-soapFix pending
Fix deferred
Red Hat Enterprise Linux 10php8.4-xmlFix pending
Fix deferred
Red Hat Enterprise Linux 9phpFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-bcmathFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-cliFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-commonFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-dbaFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-dbgFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-develFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-embeddedFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-enchantFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-ffiFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-fpmFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-gdFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-gmpFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-intlFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-ldapFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-mbstringFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-mysqlndFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-odbcFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-opcacheFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-pdoFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-pgsqlFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-processFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-snmpFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-soapFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 9php-xmlFixed
Fix deferred
0:8.0.30-6.el9_8RHSA-2026:33449
Red Hat Enterprise Linux 8apcu-panelNot affected
Red Hat Enterprise Linux 8libzipNot affected
Red Hat Enterprise Linux 8libzip-develNot affected
Red Hat Enterprise Linux 8libzip-toolsNot affected
Red Hat Enterprise Linux 8phpNot affected
Red Hat Enterprise Linux 8php-bcmathNot affected
Red Hat Enterprise Linux 8php-cliNot affected
Red Hat Enterprise Linux 8php-commonNot affected
Red Hat Enterprise Linux 8php-dbaNot affected
Red Hat Enterprise Linux 8php-dbgNot affected
Red Hat Enterprise Linux 8php-develNot affected
Red Hat Enterprise Linux 8php-embeddedNot affected
Red Hat Enterprise Linux 8php-enchantNot affected
Red Hat Enterprise Linux 8php-ffiNot affected
Red Hat Enterprise Linux 8php-fpmNot affected
Red Hat Enterprise Linux 8php-gdNot affected
Red Hat Enterprise Linux 8php-gmpNot affected
Red Hat Enterprise Linux 8php-intlNot affected
Red Hat Enterprise Linux 8php-jsonNot affected
Red Hat Enterprise Linux 8php-ldapNot affected
Red Hat Enterprise Linux 8php-mbstringNot affected
Red Hat Enterprise Linux 8php-mysqlndNot affected
Red Hat Enterprise Linux 8php-odbcNot affected
Red Hat Enterprise Linux 8php-opcacheNot affected
Red Hat Enterprise Linux 8php-pdoNot affected
Red Hat Enterprise Linux 8php-pearNot affected
Red Hat Enterprise Linux 8php-pecl-apcuNot affected
Red Hat Enterprise Linux 8php-pecl-apcu-develNot affected
Red Hat Enterprise Linux 8php-pecl-rrdNot affected
Red Hat Enterprise Linux 8php-pecl-xdebugNot affected
Red Hat Enterprise Linux 8php-pecl-xdebug3Not affected
Red Hat Enterprise Linux 8php-pecl-zipNot affected
Red Hat Enterprise Linux 8php-pgsqlNot affected
Red Hat Enterprise Linux 8php-processNot affected
Red Hat Enterprise Linux 8php-recodeNot affected
Red Hat Enterprise Linux 8php-snmpNot affected
Red Hat Enterprise Linux 8php-soapNot affected
Red Hat Enterprise Linux 8php-xmlNot affected
Red Hat Enterprise Linux 8php-xmlrpcNot affected
Red Hat Enterprise Linux 7phpNot affected
Red Hat Enterprise Linux 7php-bcmathNot affected
Red Hat Enterprise Linux 7php-cliNot affected
Red Hat Enterprise Linux 7php-commonNot affected
Red Hat Enterprise Linux 7php-dbaNot affected
Red Hat Enterprise Linux 7php-develNot affected
Red Hat Enterprise Linux 7php-embeddedNot affected
Red Hat Enterprise Linux 7php-enchantNot affected
Red Hat Enterprise Linux 7php-fpmNot affected
Red Hat Enterprise Linux 7php-gdNot affected
Red Hat Enterprise Linux 7php-intlNot affected
Red Hat Enterprise Linux 7php-ldapNot affected
Red Hat Enterprise Linux 7php-mbstringNot affected
Red Hat Enterprise Linux 7php-mysqlNot affected
Red Hat Enterprise Linux 7php-mysqlndNot affected
Red Hat Enterprise Linux 7php-odbcNot affected
Red Hat Enterprise Linux 7php-pdoNot affected
Red Hat Enterprise Linux 7php-pgsqlNot affected
Red Hat Enterprise Linux 7php-processNot affected
Red Hat Enterprise Linux 7php-pspellNot affected
Red Hat Enterprise Linux 7php-recodeNot affected
Red Hat Enterprise Linux 7php-snmpNot affected
Red Hat Enterprise Linux 7php-soapNot affected
Red Hat Enterprise Linux 7php-xmlNot affected
Red Hat Enterprise Linux 7php-xmlrpcNot affected
Red Hat Enterprise Linux 6phpNot affected
Red Hat Enterprise Linux 6php-bcmathNot affected
Red Hat Enterprise Linux 6php-cliNot affected
Red Hat Enterprise Linux 6php-commonNot affected
Red Hat Enterprise Linux 6php-dbaNot affected
Red Hat Enterprise Linux 6php-develNot affected
Red Hat Enterprise Linux 6php-embeddedNot affected
Red Hat Enterprise Linux 6php-enchantNot affected
Red Hat Enterprise Linux 6php-fpmNot affected
Red Hat Enterprise Linux 6php-gdNot affected
Red Hat Enterprise Linux 6php-imapNot affected
Red Hat Enterprise Linux 6php-intlNot affected
Red Hat Enterprise Linux 6php-ldapNot affected
Red Hat Enterprise Linux 6php-mbstringNot affected
Red Hat Enterprise Linux 6php-mysqlNot affected
Red Hat Enterprise Linux 6php-odbcNot affected
Red Hat Enterprise Linux 6php-pdoNot affected
Red Hat Enterprise Linux 6php-pgsqlNot affected
Red Hat Enterprise Linux 6php-processNot affected
Red Hat Enterprise Linux 6php-pspellNot affected
Red Hat Enterprise Linux 6php-recodeNot affected
Red Hat Enterprise Linux 6php-snmpNot affected
Red Hat Enterprise Linux 6php-soapNot affected
Red Hat Enterprise Linux 6php-tidyNot affected
Red Hat Enterprise Linux 6php-xmlNot affected
Red Hat Enterprise Linux 6php-xmlrpcNot affected
Red Hat Enterprise Linux 6php-ztsNot affected
AlmaLinux 10phpFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-bcmathFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-cliFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-commonFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-dbaFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-dbgFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-develFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-embeddedFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-enchantFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-ffiFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-fpmFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-gdFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-gmpFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-intlFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-ldapFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-mbstringFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-mysqlndFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-odbcFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-opcacheFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-pdoFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-pgsqlFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-processFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-snmpFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-soapFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 10php-xmlFixed8.3.31-1.el10_2ALSA-2026:23388
AlmaLinux 9phpFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-bcmathFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-cliFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-commonFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-dbaFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-dbgFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-develFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-embeddedFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-enchantFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-ffiFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-fpmFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-gdFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-gmpFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-intlFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-ldapFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-mbstringFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-mysqlndFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-odbcFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-opcacheFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-pdoFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-pgsqlFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-processFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-snmpFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-soapFixed8.0.30-6.el9_8ALSA-2026:33449
AlmaLinux 9php-xmlFixed8.0.30-6.el9_8ALSA-2026:33449
Rocky Linux 10phpFixed0:8.3.31-1.el10_2RLSA-2026:23388
Rocky Linux 9phpFixed0:8.0.30-6.el9_8RLSA-2026:33449
Alpine Linux 3.24php83Fixed8.3.31-r0ALPINE-CVE-2026-7259
Alpine Linux 3.24php84Fixed8.4.21-r0ALPINE-CVE-2026-7259
Alpine Linux 3.24php85Fixed8.5.6-r0ALPINE-CVE-2026-7259
Alpine Linux 3.23php83Fixed8.3.31-r0ALPINE-CVE-2026-7259
Alpine Linux 3.23php84Fixed8.4.21-r0ALPINE-CVE-2026-7259
Alpine Linux 3.23php85Fixed8.5.6-r0ALPINE-CVE-2026-7259
Alpine Linux 3.22php82Fixed8.2.31-r0ALPINE-CVE-2026-7259
Alpine Linux 3.22php83Fixed8.3.36-r0ALPINE-CVE-2026-7259
Alpine Linux 3.22php84Fixed8.4.27-r0ALPINE-CVE-2026-7259
Alpine Linux 3.19php81Fixed8.1.34-r0ALPINE-CVE-2026-7259

What the vendor says

As published in the CVE record by php, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.