PT-2026-39457

CVE-2026-6104

·

Published

2026-05-10

·

Updated

2026-08-31

Description by

CVSS 3.1
9.1
Critical
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Name of the Vulnerable Software and Affected Versions PHP versions 8.4.0 through 8.4.20 PHP versions 8.5.0 through 8.5.5
Description An issue exists in the mbstring extension where passing an encoding name containing an embedded NUL byte to certain functions causes the code to incorrectly assume strings are of equal length when strncasecmp() returns 0. This can result in an out-of-bounds read of global memory, which may lead to information disclosure or a system crash. Affected functions include mb convert encoding(), mb detect encoding(), mb convert variables(), and mb detect order(). Additionally, the mbstring.detect order and mbstring.http output INI settings are affected.
Recommendations Update PHP version 8.4.x to 8.4.21. Update PHP version 8.5.x to 8.5.6.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Weakness enumeration
Related identifiers
GHSA-74R9-QXHC-FX53
ALSA-2026:22649
BIT-LIBPHP-2026-6104
BIT-PHP-2026-6104
BIT-PHP-MIN-2026-6104
OPENSUSE-SU-2026:10747-1
OPENSUSE-SU-2026:20745-1
RHSA-2026:22649
SUSE-SU-2026:21612-1
USN-8336-1
Found an issue in the description? Have something to add? Feel free to write us 👾