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
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, decodejson() advances the input scalar's string pointer past the mark with SvPVset() and restores it only on the normal return path. When decoding aborts through a Perl exception, for example a filterjsonobject 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Cpanel::JSON::XSto a version that resolves this vulnerability.Fixed in 4.41 - Upgrade
Upgrade
Cpanel::JSON::XSto a version that resolves this vulnerability.Fixed in 4.41 or later
Event History
Frequently Asked Questions
What is the severity of CVE-2026-9516?
The severity of CVE-2026-9516 is rated at risk level 30.
How do I fix CVE-2026-9516?
To fix CVE-2026-9516, upgrade to Cpanel::JSON::XS version 4.41 or later.
What software is affected by CVE-2026-9516?
CVE-2026-9516 affects versions of Cpanel::JSON::XS prior to 4.41 for Perl.
What type of vulnerability is CVE-2026-9516?
CVE-2026-9516 is a denial of service vulnerability caused by improper handling of UTF-8 BOM prefixed input.
When was CVE-2026-9516 published?
CVE-2026-9516 was published on June 3, 2026.