{"id":"UBUNTU-CVE-2026-9334","details":"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 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. A caller decoding untrusted JSON with dupkeys_as_arrayref enabled is crashed, and the incompatible access follows a pointer taken from attacker controlled scalar contents.","modified":"2026-06-12T09:04:22.619826061Z","published":"2026-06-03T01:16:00Z","upstream":["CVE-2026-9334"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-9334"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-9334"}],"affected":[{"package":{"name":"libcpanel-json-xs-perl","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/libcpanel-json-xs-perl?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0115-1","3.0210-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"libcpanel-json-xs-perl","binary_version":"3.0210-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9334.json"}},{"package":{"name":"libcpanel-json-xs-perl","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/libcpanel-json-xs-perl?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0225-1build1","3.0239-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libcpanel-json-xs-perl","binary_version":"3.0239-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9334.json"}},{"package":{"name":"libcpanel-json-xs-perl","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/libcpanel-json-xs-perl?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.12-1","4.12-1build1","4.15-1","4.17-1","4.18-1","4.19-1","4.19-1build1","4.19-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.19-1ubuntu0.1","binary_name":"libcpanel-json-xs-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9334.json"}},{"package":{"name":"libcpanel-json-xs-perl","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/libcpanel-json-xs-perl?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.25-1build1","4.25-1build2","4.27-1","4.27-1build1","4.27-1ubuntu0.1","4.27-1ubuntu0.2"],"ecosystem_specific":{"binaries":[{"binary_version":"4.27-1ubuntu0.2","binary_name":"libcpanel-json-xs-perl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9334.json"}},{"package":{"name":"libcpanel-json-xs-perl","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/libcpanel-json-xs-perl?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.37-1","4.37-1build1","4.37-1build2","4.37-1build3","4.37-1ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_name":"libcpanel-json-xs-perl","binary_version":"4.37-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9334.json"}},{"package":{"name":"libcpanel-json-xs-perl","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/libcpanel-json-xs-perl?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.39-1","4.39-2"],"ecosystem_specific":{"binaries":[{"binary_name":"libcpanel-json-xs-perl","binary_version":"4.39-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9334.json"}},{"package":{"name":"libcpanel-json-xs-perl","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/libcpanel-json-xs-perl?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.39-2","4.40-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libcpanel-json-xs-perl","binary_version":"4.40-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9334.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:L/I:L/A:L"},{"type":"Ubuntu","score":"medium"}]}