{"id":"CVE-2026-9334","state":"PUBLISHED","title":"Cpanel::JSON::XS versions before 4.41 for Perl allow type confusion via duplicate object keys when dupkeys_as_arrayref is enabled","description":"Cpanel::JSON::XS versions before 4.41 for Perl allow type confusion via duplicate object keys when dupkeys_as_arrayref is enabled.\n\ndecode_hv() collapses duplicate object keys into an array reference under dupkeys_as_arrayref. The branch reached for a duplicate key tests `SvTYPE (old_value) != SVt_RV && SvTYPE (SvRV (old_value)) != SVt_PVAV`, which evaluates SvRV(old_value) before establishing that old_value is a reference. When the existing value is a plain scalar rather than an array reference, a non-reference scalar is dereferenced as a reference.\n\nA caller decoding untrusted JSON with dupkeys_as_arrayref enabled is crashed, and the incompatible access follows a pointer taken from attacker controlled scalar contents.","publishedAt":"2026-06-03T00:15:16.202Z","updatedAt":"2026-06-03T17:29:49.416Z","severity":{"score":7.3,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","source":"CISA-ADP"},"assigner":"CPANSec","products":["RURBAN Cpanel::JSON::XS"],"affected":[{"vendor":"RURBAN","product":"Cpanel::JSON::XS","packageName":"Cpanel-JSON-XS","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"4.41","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["XS.xs"],"programRoutines":[{"name":"decode_hv"}],"repo":"https://github.com/rurban/Cpanel-JSON-XS"}],"references":["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"],"weaknesses":["CWE-843"],"ingestedAt":"2026-10-29T20:13:52.441Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/9xxx/CVE-2026-9334.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-9334","state":"PUBLISHED","datePublished":"2026-06-03T00:15:16.202Z","dateUpdated":"2026-06-03T17:29:49.416Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-05-22T23:33:44.954Z"},"containers":{"cna":{"title":"Cpanel::JSON::XS versions before 4.41 for Perl allow type confusion via duplicate object keys when dupkeys_as_arrayref is enabled","descriptions":[{"lang":"en","value":"Cpanel::JSON::XS versions before 4.41 for Perl allow type confusion via duplicate object keys when dupkeys_as_arrayref is enabled.\n\ndecode_hv() collapses duplicate object keys into an array reference under dupkeys_as_arrayref. The branch reached for a duplicate key tests `SvTYPE (old_value) != SVt_RV && SvTYPE (SvRV (old_value)) != SVt_PVAV`, which evaluates SvRV(old_value) before establishing that old_value is a reference. When the existing value is a plain scalar rather than an array reference, a non-reference scalar is dereferenced as a reference.\n\nA caller decoding untrusted JSON with dupkeys_as_arrayref enabled is crashed, and the incompatible access follows a pointer taken from attacker controlled scalar contents."}],"affected":[{"vendor":"RURBAN","product":"Cpanel::JSON::XS","packageName":"Cpanel-JSON-XS","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"4.41","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["XS.xs"],"programRoutines":[{"name":"decode_hv"}],"repo":"https://github.com/rurban/Cpanel-JSON-XS"}],"references":[{"url":"https://github.com/rurban/Cpanel-JSON-XS/commit/11a7c550a0d8fac2f84414f24d5df9b2bfe346e2.patch","tags":["patch"]},{"url":"https://metacpan.org/release/RURBAN/Cpanel-JSON-XS-4.41/changes","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-843","description":"CWE-843 Access of Resource Using Incompatible Type ('Type Confusion')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-06-03T00:15:16.202Z"},"solutions":[{"lang":"en","value":"Upgrade to Cpanel::JSON::XS 4.41 or later."}],"source":{"discovery":"UNKNOWN"},"timeline":[{"lang":"en","time":"2026-02-24T00:00:00.000Z","value":"Issue reported."},{"lang":"en","time":"2026-05-27T00:00:00.000Z","value":"Version 4.41 released with fix."},{"lang":"en","time":"2026-05-28T00:00:00.000Z","value":"Fix verified."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/06/03/4"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-06-03T09:35:37.984Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.3,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","integrityImpact":"LOW","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"LOW","privilegesRequired":"NONE","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-06-03T17:29:35.774276Z","id":"CVE-2026-9334","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-03T17:29:49.416Z"}}]}}}