Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| RURBAN | Cpanel::JSON::XS | < 4.41 | 4.41 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libcpanel-json-xs-perl | 4.41-1 | — |
| Debian 13 | libcpanel-json-xs-perl | No fix yet | — |
| Debian 12 | libcpanel-json-xs-perl | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libcpanel-json-xs-perl | No fix yet | — |
| Ubuntu 26.04 LTS | libcpanel-json-xs-perl | No fix yet | — |
| Ubuntu 25.10 | libcpanel-json-xs-perl | No fix yet | — |
| Ubuntu 24.04 LTS | libcpanel-json-xs-perl | No fix yet | — |
| Ubuntu 22.04 LTS | libcpanel-json-xs-perl | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | libcpanel-json-xs-perl | No fix yet | — |
| Ubuntu 18.04 LTS | libcpanel-json-xs-perl | No fix yet | — |
| Ubuntu 16.04 LTS | libcpanel-json-xs-perl | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | perl-Cpanel-JSON-XS | 4.380.0-150700.3.6.1 | SUSE-SU-2026:4926-1, SUSE-SU-2026:2782-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | perl-Cpanel-JSON-XS | 4.410.0-1.1 | openSUSE-SU-2026:10950-1 |
| openSUSE Leap 16.0 | perl-Cpanel-JSON-XS | 4.420.0-bp160.1.1 | openSUSE-SU-2026:21140-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | perl-Cpanel-JSON-XS | No fix yet | — |
Advisories 4
- SUSE-SU-2026:4926-1 Security update for perl-Cpanel-JSON-XS SUSE / openSUSE Security Updates · Oct 29, 2026
- SUSE-SU-2026:2782-1 Security update for perl-Cpanel-JSON-XS SUSE / openSUSE Security Updates · Jul 9, 2026
- openSUSE-SU-2026:21140-1 Security update for perl-Cpanel-JSON-XS SUSE / openSUSE Security Updates · Jun 30, 2026
- openSUSE-SU-2026:10950-1 perl-Cpanel-JSON-XS-4.410.0-1.1 on GA media SUSE / openSUSE Security Updates · Jun 4, 2026