CVSS 4.0
6.3 mediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:L/SI:N/SA:L/RE:M/U:AmberMedium (6.3) in php php. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:L/SI:N/SA:L/RE:M/U:AmberCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:HExplain CVE-2026-6104 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-6104?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-6104?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-6104 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.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| PHP Group PHP | from 8.4.* before 8.4.21 |
| PHP Group PHP | from 8.5.* before 8.5.6 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 13 | php8.4 | 8.4.21-1~deb13u1 | DEBIAN-CVE-2026-6104 DSA-6256-1 |
| Debian | 14 | php8.4 | 8.4.21-1 | DEBIAN-CVE-2026-6104 |
| Ubuntu | 25.10 | php8.4 | 8.4.11-1ubuntu1.2 | UBUNTU-CVE-2026-6104 |
| Ubuntu | 26.04:LTS | php8.5 | 8.5.4-0ubuntu1.1 | UBUNTU-CVE-2026-6104 |
| Red Hat | enterprise_linux:10.2 | php8.4, php8.4-gd, php8.4-cli and 47 more | 0:8.4.21-1.el10_2 | RHSA-2026:22649 |
| openSUSE | Tumbleweed | php8 | 8.5.6-1.1 | openSUSE-SU-2026:10747-1 |
| AlmaLinux | 10 | php8.4, php8.4-gd, php8.4-cli and 22 more | 8.4.21-1.el10_2 | ALSA-2026:22649 |
| Rocky Linux | 10 | php8.4 | 0:8.4.21-1.el10_2 | RLSA-2026:22649 |
| Alpine | v3.22 | php84 | 8.4.27-r0 | ALPINE-CVE-2026-6104 |
| Alpine | v3.23 | php84 | 8.4.21-r0 | ALPINE-CVE-2026-6104 |
| Alpine | v3.23, v3.24 | php85 | 8.5.6-r0 | ALPINE-CVE-2026-6104 |
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. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE · Alpine.
Red Hat rates this Important.
This issue is exploited via a crafted encoding passed to `mb_convert_encoding()` without sanitization. The `mb_detect_encoding()`, `mb_convert_variables()` and `mb_detect_order()` functions, as well as the `mbstring.detect_order` and `mbstring.http_output` INI settings are also vulnerable. This vulnerability allows an attacker to cause an out-of-bounds read of only 1 byte, leading to a denial of service or a limited information disclosure. Due to these reasons, this flaw has been rated with an important severity.
To mitigate this vulnerability, sanitize any input containing a NUL byte before calling the vulnerable mbstring functions. Also, verify your PHP configuration to ensure the vulnerable INI settings are using securely hardcoded encodings.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | php8.4-0:8.4.21-1.el10_2 | Fixed 2026-06-02 | RHSA-2026:22649 |
| Red Hat Enterprise Linux 10 | php | Not affected | |
| Red Hat Enterprise Linux 6 | php | Not affected | |
| Red Hat Enterprise Linux 7 | php | Not affected | |
| Red Hat Enterprise Linux 8 | php:7.4/php | Not affected | |
| Red Hat Enterprise Linux 8 | php:8.2/php | Not affected | |
| Red Hat Enterprise Linux 9 | php | Not affected | |
| Red Hat Enterprise Linux 9 | php:8.2/php | Not affected | |
| Red Hat Enterprise Linux 9 | php:8.3/php | Not affected | |
| Red Hat Hardened Images | php | Not 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-6104.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.