CVE-2026-9516
Cpanel::JSON::XS versions before 4.41 for Perl allow denial of service via UTF-8 BOM prefixed input when a decode filter callback throws. To skip a leading 3-byte UTF-8 BOM, decode_json() advances the input scalar's string pointer past the mark with SvPV_set() and restores it only on the normal return path. When decoding aborts through a Perl exception, for example a filter_json_object callback that croaks, the restore is skipped and the scalar is left with its string pointer offset into its own buffer and a shortened length. When that scalar is later freed, the allocator receives an invalid pointer and the interpreter aborts. A single BOM prefixed document decoded with a throwing filter callback crashes any caller.
Scoring
- Severity
- HIGH
- CVSS base score
- 7.5
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS probability
- 0.36%
- CWE
- CWE-763, CWE-755
- Published
- 2026-06-03
- Last modified
- 2026-06-03
Affected products
- RURBAN Cpanel::JSON::XS
Weakness type
Related vulnerabilities
- CVE-2026-77500 — Windows Device Association Service Elevation of Privilege Vulnerability
- CVE-2026-74860 — Libxml2: double-free/uaf in libxml2 python bindings
- CVE-2026-16005 — Release of Invalid Pointer or Reference in Armoury Crate driver allows a local user to free...
- CVE-2023-20511 — Release of an invalid pointer in the AMD kernel mode driver (KMD) could allow a privileged attacker...
- CVE-2026-19315 — Fireware OS Pre-Authentication Type Confusion in iked Allows Remote Code Execution
- CVE-2026-57248 — Foxit PDF Editor/Reader Annotation Improper Release Vulnerability
- CVE-2026-47312 — Release of invalid pointer or reference vulnerability in Samsung Open Source Escargot allows Buffer...
- CVE-2025-65116 — Buffer Overflow Vulnerability in JP1/IT Desktop Management 2 and JP1/NETM/DM