Import Source
https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-89396.json
JSON Data
https://api.osv.dev/v1/vulns/AZL-89396
Upstream
Published
2026-06-03T01:16:23Z
Modified
2026-09-21T05:37:51Z
Summary
CVE-2026-9334 affecting package perl-Cpanel-JSON-XS 4.39-1
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.

References

Affected packages

Azure Linux:3 / perl-Cpanel-JSON-XS

Package

Name
perl-Cpanel-JSON-XS
Purl
pkg:rpm/azure-linux/perl-Cpanel-JSON-XS

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
4.39-1

Database specific

source
"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-89396.json"