


Perceptive Security
SOC/SIEM Consultancy

Cpanel::JSON::XS versions before 4.41 for Perl allow type confusion via duplicate object keys when dupkeys_as_arrayref is enabled.
decode_hv() collapses duplic…
Published:
2 juni 2026 om 22:00:00
Alert date:
3 juni 2026 om 19:01:16
Source:
nvd.nist.gov
Supply Chain & Dependencies, Web Technologies
CVE-2026-9334 affects Cpanel::JSON::XS versions before 4.41 for Perl, allowing type confusion via duplicate object keys when dupkeys_as_arrayref is enabled. The vulnerability occurs in decode_hv() function which collapses duplicate object keys into an array reference. A logical error in the branch handling duplicate keys causes SvRV(old_value) to be evaluated before confirming old_value is a reference. When the existing value is a plain scalar instead of an array reference, a non-reference scalar gets dereferenced as a reference. Attackers can exploit this by providing untrusted JSON with duplicate keys to crash applications and potentially achieve code execution through controlled scalar contents.
Technical details
Mitigation steps:
Affected products:
Cpanel::JSON::XS
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-9334
https://github.com/rurban/Cpanel-JSON-XS/commit/11a7c550a0d8fac2f84414f24d5df9b2bfe346e2.patch
https://metacpan.org/release/RURBAN/Cpanel-JSON-XS-4.41/changes
http://www.openwall.com/lists/oss-security/2026/06/03/4
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
