{"id":"CVE-2026-9334","aliases":["CVE-2026-9334"],"related":[],"kind":"vulnerability","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","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Las versiones de Cpanel::JSON::XS anteriores a la 4.41 para Perl permiten confusión de tipos a través de claves de objeto duplicadas cuando dupkeys_as_arrayref está habilitado.\n\ndecode_hv() colapsa las claves de objeto duplicadas en una referencia de array bajo dupkeys_as_arrayref. La rama alcanzada para una clave duplicada prueba 'SvTYPE (old_value) != SVt_RV && SvTYPE (SvRV (old_value)) != SVt_PVAV', que evalúa SvRV(old_value) antes de establecer que old_value es una referencia. Cuando el valor existente es un escalar simple en lugar de una referencia de array, un escalar no referenciado es desreferenciado como una referencia.\n\nUn llamador que decodifica JSON no confiable con dupkeys_as_arrayref habilitado se bloquea, y el acceso incompatible sigue un puntero tomado de contenidos escalares controlados por el atacante.","source":"nvd"}],"published":"2026-06-03T00:15:16.202Z","modified":"2026-07-21T19:10:00.107Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"}],"cwes":["CWE-843"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"4.41","status":"affected"}],"vendor":"RURBAN","product":"Cpanel::JSON::XS","package":"Cpanel-JSON-XS","repo":"https://github.com/rurban/Cpanel-JSON-XS","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.41"}],"vendor":"rurban","product":"cpanel::json::xs","cpe":"cpe:2.3:a:rurban:cpanel\\:\\:json\\:\\:xs:*:*:*:*:*:perl:*:*","source":"nvd"}],"references":[{"url":"https://github.com/rurban/Cpanel-JSON-XS/commit/11a7c550a0d8fac2f84414f24d5df9b2bfe346e2.patch","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/RURBAN/Cpanel-JSON-XS-4.41/changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2026/06/03/4","tags":["mailing-list","patch","third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-06-03T17:29:35.774Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-9334","url":"https://www.cve.org/CVERecord?id=CVE-2026-9334","licence":"CVE Terms of Use","modified":"2026-06-03T17:29:49.416Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-9334","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-9334","licence":"Public domain","modified":"2026-07-21T19:10:00.107Z"}],"updatedAt":"2026-11-25T22:59:23.622Z","epss":{"score":0.00253,"percentile":0.17873,"date":"2026-12-02T12:00:21.000Z"}}