Logo
vulnerabilityCVE-2026-6104
Name
CVE-2026-6104
Source
NVD ( link)Debian ( link)
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.
Published Date
Updated Date
Workaround
-

Analysis#


Affected Component
Analysis
php8
Exploitable

Vulnerability Ratings#


6.3
CVSSv4
9.1
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
8.3.31
Not Affected
buildroot
master
8.5.7
Not Affected
openwrt
openwrt-25.12
8.4.21-r1
Not Affected
yocto
kirkstone
8.1.34
Not Affected
yocto
master
8.5.7
Not Affected
yocto
scarthgap
8.2.31
Not Affected