9.1

CVE-2026-6104: Global buffer over-read in mb_convert_encoding() with attacker-supplied encoding

Modified
AliasesUBUNTU-CVE-2026-6104DEBIAN-CVE-2026-6104ALPINE-CVE-2026-6104
Published 10-05-2026Last modified 15-07-2026

Vulnerability summary

CVE-2026-6104 is a critical (CVSS 9.1) Out-of-bounds Read vulnerability in php group php. EPSS estimates a 0.47% chance of exploitation in the next 30 days, higher than 42.2% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
9.1/10
010
Critical · v3.1 (NVD)
EPSS score
0.47%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 2

Timeline

  1. 10-05-2026
    PublishedVulnerability first disclosed.
  2. 15-07-2026
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

8 scores · 5 sources · 2 versions

EPSS trend

Probability

0.47%

Chance of exploitation in the next 30 days

Percentile

42%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.47% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine2 products
  • php84< 8.4.27-r0 | < 8.4.21-r0
  • php85< 8.5.6-r0
Ubuntu2 products
  • php8.4< 8.4.11-1ubuntu1.2
  • php8.5< 8.5.4-0ubuntu1.1
Debian1 product
  • php8.4< 8.4.21-1~deb13u1 | < 8.4.21-1
Php1 product
  • php≥ 8.4.0, < 8.4.21 | ≥ 8.5.0, < 8.5.6
Php group1 product
  • php≥ 8.4.*, < 8.4.21 | ≥ 8.5.*, < 8.5.6

5 vendors · 7 products

References

10 links