Skip to content
OpenAdvisories
Low · 2.1 CVE-2026-7259 EUVD-2026-28969

Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()

Published May 10, 2026 · Updated May 11, 2026 · 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().

Affected products

VendorProductAffectedFixed
PHP Group PHP 8.2.* – < 8.2.31, 8.3.* – < 8.3.31, 8.4.* – < 8.4.21, 8.5.* – < 8.5.6 8.2.31

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 php8.4 8.4.21-1 —
Debian 13 php8.4 8.4.21-1~deb13u1 —
Debian 12 php8.2 8.2.31-1~deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS php8.5 8.5.4-0ubuntu1.1 —
Ubuntu 25.10 php8.4 8.4.11-1ubuntu1.2 —
Ubuntu 24.04 LTS php8.3 8.3.6-0ubuntu0.24.04.9 —
Ubuntu 22.04 LTS php8.1 8.1.2-1ubuntu2.24 —
ReleasePackageFixed inAdvisory
RHEL 10 php +23 8.3.31-1.el10_2 RHSA-2026:23388
RHEL 9 php +23 8.0.30-6.el9_8 RHSA-2026:33449

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 php +23 8.3.31-1.el10_2 ALSA-2026:23388
AlmaLinux 9 php +23 8.0.30-6.el9_8 ALSA-2026:33449

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 php 8.3.31-1.el10_2 RLSA-2026:23388
Rocky Linux 9 php 8.0.30-6.el9_8 RLSA-2026:33449
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed php8 8.5.6-1.1 openSUSE-SU-2026:10747-1
ReleasePackageFixed inAdvisory
Alpine v3.24 php83 8.3.31-r0 —
Alpine v3.24 php84 8.4.21-r0 —
Alpine v3.24 php85 8.5.6-r0 —
Alpine v3.23 php83 8.3.31-r0 —
Alpine v3.23 php84 8.4.21-r0 —
Alpine v3.23 php85 8.5.6-r0 —
Alpine v3.22 php82 8.2.31-r0 —
Alpine v3.22 php83 8.3.36-r0 —
Alpine v3.22 php84 8.4.27-r0 —
Alpine v3.19 php81 8.1.34-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 php8.2 +27 8.2.31-1.amzn2023.0.1 ALAS2023-2026-1727
Amazon Linux 2023 php8.3 +28 8.3.31-1.amzn2023.0.1 ALAS2023-2026-1728
Amazon Linux 2023 php8.4 +27 8.4.21-1.amzn2023.0.1 ALAS2023-2026-1726
Amazon Linux 2023 php8.5 +26 8.5.6-1.amzn2023.0.1 ALAS2023-2026-1733

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 php 8.3.31-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 php +23 8.3.31-1.el10_2 ELSA-2026-23388
Oracle Linux 9 php +23 8.0.30-6.el9_8 ELSA-2026-33449

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling php-8.2 8.2.31-r0 —

Advisories 15

References