{"vuln_id":"CVE-2026-6104","aliases":["CVE-2025-14179","CVE-2026-12184","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568","GHSA-74r9-qxhc-fx53"],"description":"php8.4 - security update","published_at":"2026-05-07T12:55:25Z","modified_at":"2026-11-20T01:28:47.348275Z","first_seen_at":"2026-11-22T13:39:48.453563Z","severity":"critical","severity_source":"cvss","cvss_score":9.1,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","cwe":["CWE-125"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00469,"epss_percentile":0.4137,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-6104"},"matched_alias":null,"items":[{"id":11923,"source":{"id":"debian13-php","name":"Debian 13 php8.4 (package vulnerabilities)"},"title":"php8.4 (Debian:13): DEBIAN-CVE-2026-6104 / 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…","summary":"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.\n\nAffected: Debian:13:php8.4, Debian:14:php8.4\n\nFixed in: 8.4.21-1~deb13u1, 8.4.21-1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-6104","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-6104","published_at":"2026-05-10T06:16:07.397000Z","updated_at":"2026-10-01T03:03:28.752915Z","fetched_at":"2026-11-22T13:39:48.366403Z","severity":"critical","cvss_score":9.1,"epss":0.00469,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.4","vuln_id":"CVE-2026-6104","vuln_ids":["CVE-2025-14179","CVE-2026-12184","CVE-2026-6104","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568","DEBIAN-CVE-2026-6104","GHSA-74R9-QXHC-FX53"],"tags":["package-watch","pkg:php8.4","stack","debian13","fix-available"],"cluster_id":11153,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11923","html":"https://vulnwatch.ve1ve2.com/item/11923"}},{"id":11892,"source":{"id":"debian13-php","name":"Debian 13 php8.4 (package vulnerabilities)"},"title":"php8.4 (Debian:13): DSA-6256-1 / CVE-2025-14179 - php8.4 - security update","summary":"Affected: Debian:13:php8.4\n\nFixed in: 8.4.21-1~deb13u1","url":"https://osv.dev/vulnerability/DSA-6256-1","published_at":"2026-05-08T00:00:00Z","updated_at":"2026-11-20T01:28:47.348275Z","fetched_at":"2026-11-22T13:39:48.366361Z","severity":"critical","cvss_score":9.8,"epss":0.00894,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php8.4","vuln_id":"CVE-2025-14179","vuln_ids":["CVE-2025-14179","CVE-2026-12184","CVE-2026-6104","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568","DSA-6256-1","GHSA-4JHR-8W89-J733","GHSA-74R9-QXHC-FX53","GHSA-7QG2-V9FJ-4MWV","GHSA-85C2-Q967-79Q5","GHSA-96WQ-48VP-HH57","GHSA-HMXP-6PC4-F3VV","GHSA-M33R-QMCV-P97Q","GHSA-M8RR-4C36-8GQ4","GHSA-MHMQ-MMQJ-2V39","GHSA-W476-322C-WPVM","GHSA-WM6J-2649-PV75"],"tags":["package-watch","pkg:php8.4","stack","debian13","fix-available"],"cluster_id":341,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11892","html":"https://vulnwatch.ve1ve2.com/item/11892"}},{"id":12645,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-74r9-qxhc-fx53 / CVE-2026-6104: Global buffer over-read in mb_convert_encoding() with attacker-supplied encoding","summary":"Global buffer over-read in mb_convert_encoding() with attacker-supplied encoding ## Summary A global buffer over-read exists in `mbfl_name2encoding_ex()` (`ext/mbstring/libmbfl/mbfl/mbfl_encoding.c`, line 352), called from `mb_convert_encoding(...)` and other mbstring functions, when parsing encoding names with embedded NUL bytes. ## Root Cause In `mbfl_name2encoding_ex`, the MIME name search loop (line 352) uses: ```c if (strncasecmp((*encoding)->mime_name, name, name_len) == 0 && (*encoding)->mime_name[name_len] == '\\0') { ``` When `name` contains an embedded NUL byte (e.g., `\"UTF-8\\x00AAAA...\"`), `strncasecmp` returns 0 after matching up to the NUL (since both strings have NUL at the same position). The subsequent check `(*encoding)->mime_name[name_len]` then reads at offset `name_len` (e.g., 22) from `mime_name`, which is only 6 bytes long (`\"UTF-8\\0\"`). This reads 16+ bytes past the end of the global string into adjacent global memory. The same issue exists on lines 362 for encoding aliases. ## Minimal Reproducer ```php","url":"https://github.com/php/php-src/security/advisories/GHSA-74r9-qxhc-fx53","published_at":"2026-05-07T12:55:25Z","updated_at":"2026-05-07T12:55:25Z","fetched_at":"2026-11-22T14:05:37.431185Z","severity":"critical","cvss_score":9.1,"epss":0.00469,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"ext-mbstring","vuln_id":"CVE-2026-6104","vuln_ids":["CVE-2025-14179","CVE-2026-12184","CVE-2026-6104","CVE-2026-6722","CVE-2026-6735","CVE-2026-7258","CVE-2026-7259","CVE-2026-7261","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568","GHSA-74R9-QXHC-FX53"],"tags":["repo-advisory","php","CWE-125","security","repo:php/php-src","stack"],"cluster_id":11753,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12645","html":"https://vulnwatch.ve1ve2.com/item/12645"}}]}