{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-6104","published":"2026-05-10T06:16:07.397000Z","last_modified":"2026-07-24T08:10:00.150000Z","status":"Modified","cvss":{"version":"4.0","score":6.3,"severity":"MEDIUM","vector":"CVSS: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","source":"security@php.net","primary":false},"auth":false,"cwes":["CWE-125"],"cpes":[{"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","part":"a","vendor":"php","product":"php","version_start_including":"8.4.0","version_end_excluding":"8.4.21"},{"criteria":"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","part":"a","vendor":"php","product":"php","version_start_including":"8.5.0","version_end_excluding":"8.5.6"}],"cpes_truncated":false,"vendors":["php"],"products":["php/php"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial"},"cat":"web","platform":"multi","eol":false,"packages":[],"severity":"medium","priority_score":53,"links":{"html_es":"/es/cve/CVE-2026-6104/","html_en":"/en/cve/CVE-2026-6104/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-6104","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-6104"},"untrusted":{"vendor_name":"Php","product_name":"Php","desc_en":"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":[{"untrusted_vendor":"PHP Group","untrusted_product":"PHP","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat Enterprise Linux 10","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat Enterprise Linux 6","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat Enterprise Linux 7","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat Enterprise Linux 8","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat Enterprise Linux 9","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat Hardened Images","versions":[]}],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-74r9-qxhc-fx53","tags":["Vendor Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2026:22649","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-6104","tags":[]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2468573","tags":[]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6104.json","tags":[]}]},"bulletins":[{"source":"redhat","id":"RHSA-2026:22649","url":"https://access.redhat.com/errata/RHSA-2026:22649","published":"2026-06-03T10:20:16+00:00","severity":"high","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: php8.4 security update"}},{"source":"suse","id":"openSUSE-SU-2026:10747-1","url":"https://www.suse.com/support/update/","published":"2026-05-11T00:00:00+00:00","severity":"critical","exploited":false,"untrusted":{"title":"php8-8.5.6-1.1 on GA media"}}]}