# 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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-06-03T00:15:51.685Z
- Modified: 2026-07-22T19:10:00.120Z
- Weaknesses: CWE-755, CWE-763
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## Description

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.

(As written by CVE List.)

## Affected

- Cpanel-JSON-XS: before 4.41
- rurban cpanel::json::xs: before 4.41

## References

- <https://github.com/rurban/Cpanel-JSON-XS/commit/dfe1b41a36caba51dc12a2917fe50285d1ffaa7b.patch> (patch)
- <https://metacpan.org/release/RURBAN/Cpanel-JSON-XS-4.41/changes> (release-notes)
- <http://www.openwall.com/lists/oss-security/2026/06/03/5> (mailing-list, patch, third-party-advisory)

## Sources

- CVE List: [CVE-2026-9516](https://www.cve.org/CVERecord?id=CVE-2026-9516), CVE Terms of Use, modified 2026-06-03
- NVD: [CVE-2026-9516](https://nvd.nist.gov/vuln/detail/CVE-2026-9516), Public domain, modified 2026-07-22

---

Page: https://cve.day/CVE-2026-9516 · Whole record: https://cve.day/CVE-2026-9516.json · Rebuilt by cve.day 2026-11-25T22:59:23.623Z
