{"id":"CVE-2026-9516","summary":"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","details":"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.\n\nTo 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.\n\nWhen 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.","modified":"2026-07-15T01:49:05.958442046Z","published":"2026-06-03T00:15:51.685Z","related":["SUSE-SU-2026:2782-1","openSUSE-SU-2026:10950-1","openSUSE-SU-2026:21140-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/9xxx/CVE-2026-9516.json","cna_assigner":"CPANSec","cwe_ids":["CWE-755","CWE-763"]},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/06/03/5"},{"type":"WEB","url":"https://cpan.org/modules"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/9xxx/CVE-2026-9516.json"},{"type":"ADVISORY","url":"https://metacpan.org/release/RURBAN/Cpanel-JSON-XS-4.41/changes"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-9516"},{"type":"FIX","url":"https://github.com/rurban/Cpanel-JSON-XS/commit/dfe1b41a36caba51dc12a2917fe50285d1ffaa7b.patch"},{"type":"PACKAGE","url":"https://github.com/rurban/Cpanel-JSON-XS"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rurban/cpanel-json-xs","events":[{"introduced":"0"},{"fixed":"31eb47f3fe81fc1558052c697cbfeef6fd5facfb"},{"fixed":"dfe1b41a36caba51dc12a2917fe50285d1ffaa7b"}],"database_specific":{"cpe":"cpe:2.3:a:rurban:cpanel\\:\\:json\\:\\:xs:*:*:*:*:*:perl:*:*","extracted_events":[{"introduced":"0"},{"fixed":"4.41"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["4.40","4.39","4.38","4.37","4.36","4.35","4.34","4.33","4.32","4.31","4.30","4.29","4.28","4.27","4.26","4.25","4.24","4.23","4.22","4.21","4.20","4.19","4.18","4.17","4.16","4.15","4.14","4.13","4.12","4.11","4.10","4.09","4.08","4.07","4.06","4.05","4.04","4.03","4.02","4.01","4.00","3.99_03","3.99_02","3.99_01","3.0240","3.0239","3.0238","3.0237","3.0236","3.0235","3.0234","3.0233","3.0232","3.0229","3.0227","3.0226","3.0225","3.0224","3.0223","3.0222","3.0221","3.0220","3.0219","3.0218","3.0217_06","3.0217_05","3.0217_04","3.0217_03","3.0217_02","3.0217_01","3.0217","3.0216","3.0215","3.0214","3.0213_02","3.0213_01","3.0213","3.0212","3.0211","3.0210","3.0209","3.0208","3.0207","3.0206","3.0205","3.0204","3.0202","3.0201","3.0115","3.0114","3.0113","3.0112","3.0111","3.0110","3.0109","3.0106","3.0105","3.0104","3.0103","3.0102","3.0101","2.3404","2.3403","2.3402","2.3401","2.3314","2.3313","2.3311","2.3310","2.3309","2.3308","2.3307","2.3306","2.3305","2.33_04","2.33_02","2.32","2.31","2.3","2.29","2.28","2.27"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-9516.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}