cbcvebase.
CVE-2026-6104
published 2026-05-10

CVE-2026-6104: 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…

PriorityP349critical9.1CVSS 3.1
AVNACLPRNUINSUCHINAH
EPSS
0.47%
37.1th percentile
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.

Affected

13 ranges
VendorProductVersion rangeFixed in
debianphp8.4
phpphp
phpphp>= 8.4.0 < 8.4.218.4.21
phpphp>= 8.5.0 < 8.5.68.5.6
php_7.4php
php_8.2php
php_8.3php
php_groupphp>= 8.4.* < 8.4.218.4.21
php_groupphp>= 8.5.* < 8.5.68.5.6
ubuntuphp8.1
ubuntuphp8.3
ubuntuphp8.4
ubuntuphp8.5

CVSS provenance

nvdv3.19.1CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
nvdv4.06.3MEDIUMCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:L/SI:N/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:M/U:Amber
vendor_ubuntu7.4HIGH
vendor_redhat6.3MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.