In PHP versions 8.4.* before 8.4.21 and 8.5.* before 8.5.6, when an encoding name containing an embedded NUL byte is passed to mb_convert_encoding() or related mbstring functions, the code incorrectly assumes that when strncasecmp() returns 0 it means the strings have the same length. This can lead to out-of-bounds read of global memory, potentially causing a crash or information disclosure or crash. Affected functions include mb_convert_encoding(), mb_detect_encoding(), mb_convert_variables(), and mb_detect_order(), as well as the mbstring.detect_order and mbstring.http_output INI settings.
CVE-2026-6104
This critical-severity CVE scores 9.1 under NVD CVSS v3. EPSS exploit probability: 0.5%, top 61% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 9.1
- EG Score
- 9.1(medium)
- EG Risk
- 56(Track)EG Risk 56/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity91% × 45%Exploitation0% × 40%Automatability100% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 0%
- EPSS %ILE
- 39%
- KEV
- Not listed
Published
May 10, 2026
Last Modified
July 24, 2026
Advisory Details (5)
Auto-updated Sep 7, 2026Affected: Red Hat Enterprise Linux 10",
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6104.json2468573 – (CVE-2026-6104) CVE-2026-6104 php: global buffer over-read in mb_convert_encoding() with attacker-supplied encoding
Affected: Red Hat Enterprise Linux 10
https://bugzilla.redhat.com/show_bug.cgi?id=2468573CVE-2026-6104 - Red Hat Customer Portal
Affected: Red Hat Enterprise Linux 8 or OpenShift Container Platform 4, is affected by this vulnerability and a fix may be released to a
https://access.redhat.com/security/cve/CVE-2026-6104Affected: Red Hat Enterprise Linux 10.
https://access.redhat.com/errata/RHSA-2026:22649Global buffer over-read in mb_convert_encoding() with attacker-supplied encoding · Advisory · php/php-src · GitHub
https://github.com/php/php-src/security/advisories/GHSA-74r9-qxhc-fx53Vendor Advisories for CVE-2026-6104(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(2)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | php8.5-zip (8.5.4-0ubuntu1.1) @ resolute | 2026-08-23 | ubuntu |
| redhat | php8.4-0:8.4.21-1.el10_2 | 2026-06-02 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(2 across 2 ecosystems)
Debian:13(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| php8.4 | 8.4.11-1, 8.4.16-1, 8.4.16-1~deb13u1, 8.4.20-1 | 8.4.21-1~deb13u1 | — |
Debian:14(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| php8.4 | 8.4.11-1, 8.4.16-1, 8.4.16-1~deb13u1, 8.4.20-1, 8.4.21-1~deb13u1 | 8.4.21-1 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(1)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
Data Freshness Timeline
(refreshed 3× in last 7d / 30× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 310 total refreshes for this CVE.
- 2026-09-11 14:53 UTCEPSS rescore
- 2026-09-11 09:37 UTCEPSS rescore
- 2026-09-08 22:01 UTCEPSS rescore
- 2026-09-07 16:01 UTCEPSS rescore
- 2026-09-06 13:47 UTCEPSS rescore
- 2026-09-05 15:31 UTCEPSS rescore
- 2026-09-04 05:07 UTCEPSS rescore
- 2026-09-02 14:12 UTCEPSS rescore
- 2026-09-01 13:54 UTCEPSS rescore
- 2026-09-01 04:40 UTCEPSS rescore
- 2026-08-30 19:17 UTCEPSS rescore
- 2026-08-30 01:22 UTCEPSS rescore
- 2026-08-28 21:42 UTCEPSS rescore
- 2026-08-26 14:47 UTCEPSS rescore
- 2026-08-25 13:49 UTCEPSS rescore
- 2026-08-23 18:48 UTCEG score recompute
- 2026-08-23 18:48 UTCVendor advisory
- 2026-08-23 00:19 UTCEPSS rescore
- 2026-08-21 23:49 UTCEPSS rescore
- 2026-08-20 22:56 UTCEPSS rescore
- 2026-08-19 17:04 UTCEPSS rescore
- 2026-08-18 13:49 UTCEPSS rescore
- 2026-08-18 13:49 UTCEPSS rescore
- 2026-08-17 13:47 UTCEPSS rescore
- 2026-08-17 11:21 UTCEG score recompute
Show 75 moreShow fewer
- 2026-08-17 11:21 UTCVendor advisory
- 2026-08-16 14:56 UTCEPSS rescore
- 2026-08-16 14:56 UTCEPSS rescore
- 2026-08-16 11:53 UTCVendor advisory
- 2026-08-16 08:11 UTCVendor advisory
- 2026-08-16 04:30 UTCEG score recompute
- 2026-08-16 04:30 UTCVendor advisory
- 2026-08-16 02:15 UTCEPSS rescore
- 2026-08-15 01:31 UTCEPSS rescore
- 2026-08-15 01:25 UTCVendor advisory
- 2026-08-14 21:43 UTCVendor advisory
- 2026-08-14 18:02 UTCVendor advisory
- 2026-08-14 14:08 UTCVendor advisory
- 2026-08-14 10:27 UTCVendor advisory
- 2026-08-14 06:45 UTCVendor advisory
- 2026-08-14 03:04 UTCEG score recompute
- 2026-08-14 03:04 UTCVendor advisory
- 2026-08-13 22:00 UTCEPSS rescore
- 2026-08-13 08:17 UTCVendor advisory
- 2026-08-13 03:47 UTCVendor advisory
- 2026-08-13 00:05 UTCVendor advisory
- 2026-08-12 20:24 UTCVendor advisory
- 2026-08-12 16:40 UTCEG score recompute
- 2026-08-12 16:40 UTCVendor advisory
- 2026-08-12 13:51 UTCEPSS rescore
- 2026-08-11 23:11 UTCVendor advisory
- 2026-08-11 19:30 UTCVendor advisory
- 2026-08-11 15:48 UTCEG score recompute
- 2026-08-11 15:48 UTCVendor advisory
- 2026-08-11 08:36 UTCVendor advisory
- 2026-08-11 04:54 UTCVendor advisory
- 2026-08-11 01:13 UTCEG score recompute
- 2026-08-11 01:13 UTCVendor advisory
- 2026-08-11 00:00 UTCEPSS rescore
- 2026-08-10 12:43 UTCVendor advisory
- 2026-08-10 08:37 UTCVendor advisory
- 2026-08-10 04:56 UTCVendor advisory
- 2026-08-10 01:14 UTCVendor advisory
- 2026-08-09 21:33 UTCVendor advisory
- 2026-08-09 17:51 UTCVendor advisory
- 2026-08-09 14:10 UTCEG score recompute
- 2026-08-09 14:10 UTCVendor advisory
- 2026-08-09 13:47 UTCEPSS rescore
- 2026-08-09 10:28 UTCVendor advisory
- 2026-08-09 06:01 UTCVendor advisory
- 2026-08-09 02:19 UTCEG score recompute
- 2026-08-09 02:19 UTCVendor advisory
- 2026-08-08 16:37 UTCEPSS rescore
- 2026-08-08 10:24 UTCVendor advisory
- 2026-08-08 06:42 UTCVendor advisory
- 2026-08-08 03:01 UTCVendor advisory
- 2026-08-07 23:19 UTCVendor advisory
- 2026-08-07 19:38 UTCEG score recompute
- 2026-08-07 19:38 UTCVendor advisory
- 2026-08-07 15:56 UTCVendor advisory
- 2026-08-07 12:14 UTCVendor advisory
- 2026-08-07 08:13 UTCVendor advisory
- 2026-08-07 01:40 UTCVendor advisory
- 2026-08-06 20:32 UTCVendor advisory
- 2026-08-06 16:51 UTCEG score recompute
- 2026-08-06 16:51 UTCVendor advisory
- 2026-08-06 13:47 UTCEPSS rescore
- 2026-08-06 12:49 UTCVendor advisory
- 2026-08-06 09:07 UTCVendor advisory
- 2026-08-06 05:26 UTCVendor advisory
- 2026-08-06 01:44 UTCVendor advisory
- 2026-08-05 22:02 UTCEG score recompute
- 2026-08-05 22:02 UTCVendor advisory
- 2026-08-05 19:17 UTCEPSS rescore
- 2026-08-05 19:17 UTCEPSS rescore
- 2026-08-04 15:10 UTCEPSS rescore
- 2026-08-04 10:39 UTCEPSS rescore
- 2026-08-04 03:00 UTCVendor advisory
- 2026-08-03 23:09 UTCVendor advisory
- 2026-08-03 19:28 UTCEG score recompute
Frequently asked(5)
What is CVE-2026-6104?
When was CVE-2026-6104 disclosed?
Is CVE-2026-6104 actively exploited?
What is the CVSS score of CVE-2026-6104?
How do I remediate CVE-2026-6104?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-6104
Is Your Infrastructure Affected by CVE-2026-6104?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.