libcpanel-json-xs-perl — security advisory
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.
- Products
- libcpanel-json-xs-perl
- Affected versions
- 3.0115-1, 3.0210-1ubuntu1, 3.0225-1build1, 3.0239-1, 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, 4.25-1build1, 4.25-1build2, 4.27-1, 4.27-1build1, 4.27-1ubuntu0.1, 4.27-1ubuntu0.2, 4.37-1, 4.37-1build1, 4.37-1build2, 4.37-1build3, 4.37-1ubuntu0.1, 4.39-1, 4.39-2, 4.40-1, 4.42-1, 4.42-1build1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-9334
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:32 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2026-9334
libcpanel-json-xs-perl
Fixed versions: Not specified
libcpanel-json-xs-perl
Fixed versions: Not specified
libcpanel-json-xs-perl
Fixed versions: Not specified
libcpanel-json-xs-perl
Fixed versions: Not specified
libcpanel-json-xs-perl
Fixed versions: Not specified
libcpanel-json-xs-perl
Fixed versions: Not specified
libcpanel-json-xs-perl
Fixed versions: Not specified
libcpanel-json-xs-perl
Fixed versions: Not specified
Complete source record
{
"id": "3be0b75ac41068c5dd3539c11dbe51410fbe251c8a0872d1cc4accfa72805308",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-9334",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-9334",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2026-9334",
"products": [
{
"name": {
"value": "libcpanel-json-xs-perl",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.0115-1",
"evidence": "/affected/0/versions"
},
{
"value": "3.0210-1ubuntu1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "libcpanel-json-xs-perl",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.0225-1build1",
"evidence": "/affected/1/versions"
},
{
"value": "3.0239-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "libcpanel-json-xs-perl",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.12-1",
"evidence": "/affected/2/versions"
},
{
"value": "4.12-1build1",
"evidence": "/affected/2/versions"
},
{
"value": "4.15-1",
"evidence": "/affected/2/versions"
},
{
"value": "4.17-1",
"evidence": "/affected/2/versions"
},
{
"value": "4.18-1",
"evidence": "/affected/2/versions"
},
{
"value": "4.19-1",
"evidence": "/affected/2/versions"
},
{
"value": "4.19-1build1",
"evidence": "/affected/2/versions"
},
{
"value": "4.19-1ubuntu0.1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "libcpanel-json-xs-perl",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.25-1build1",
"evidence": "/affected/3/versions"
},
{
"value": "4.25-1build2",
"evidence": "/affected/3/versions"
},
{
"value": "4.27-1",
"evidence": "/affected/3/versions"
},
{
"value": "4.27-1build1",
"evidence": "/affected/3/versions"
},
{
"value": "4.27-1ubuntu0.1",
"evidence": "/affected/3/versions"
},
{
"value": "4.27-1ubuntu0.2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "libcpanel-json-xs-perl",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.37-1",
"evidence": "/affected/4/versions"
},
{
"value": "4.37-1build1",
"evidence": "/affected/4/versions"
},
{
"value": "4.37-1build2",
"evidence": "/affected/4/versions"
},
{
"value": "4.37-1build3",
"evidence": "/affected/4/versions"
},
{
"value": "4.37-1ubuntu0.1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "libcpanel-json-xs-perl",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.39-1",
"evidence": "/affected/5/versions"
},
{
"value": "4.39-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "libcpanel-json-xs-perl",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.40-1",
"evidence": "/affected/6/versions"
},
{
"value": "4.42-1",
"evidence": "/affected/6/versions"
},
{
"value": "4.42-1build1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "libcpanel-json-xs-perl",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.39-2",
"evidence": "/affected/7/versions"
},
{
"value": "4.40-1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-9334",
"aliases": [
"UBUNTU-CVE-2026-9334"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcpanel-json-xs-perl",
"purl": "pkg:deb/ubuntu/libcpanel-json-xs-perl?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"3.0115-1",
"3.0210-1ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9334.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcpanel-json-xs-perl",
"binary_version": "3.0210-1ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcpanel-json-xs-perl",
"purl": "pkg:deb/ubuntu/libcpanel-json-xs-perl?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"3.0225-1build1",
"3.0239-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9334.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcpanel-json-xs-perl",
"binary_version": "3.0239-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcpanel-json-xs-perl",
"purl": "pkg:deb/ubuntu/libcpanel-json-xs-perl?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"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"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9334.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcpanel-json-xs-perl",
"binary_version": "4.19-1ubuntu0.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcpanel-json-xs-perl",
"purl": "pkg:deb/ubuntu/libcpanel-json-xs-perl?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"4.25-1build1",
"4.25-1build2",
"4.27-1",
"4.27-1build1",
"4.27-1ubuntu0.1",
"4.27-1ubuntu0.2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9334.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcpanel-json-xs-perl",
"binary_version": "4.27-1ubuntu0.2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcpanel-json-xs-perl",
"purl": "pkg:deb/ubuntu/libcpanel-json-xs-perl?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"4.37-1",
"4.37-1build1",
"4.37-1build2",
"4.37-1build3",
"4.37-1ubuntu0.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9334.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcpanel-json-xs-perl",
"binary_version": "4.37-1ubuntu0.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcpanel-json-xs-perl",
"purl": "pkg:deb/ubuntu/libcpanel-json-xs-perl?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"4.39-1",
"4.39-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9334.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcpanel-json-xs-perl",
"binary_version": "4.39-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcpanel-json-xs-perl",
"purl": "pkg:deb/ubuntu/libcpanel-json-xs-perl?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"4.40-1",
"4.42-1",
"4.42-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9334.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcpanel-json-xs-perl",
"binary_version": "4.42-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "libcpanel-json-xs-perl",
"purl": "pkg:deb/ubuntu/libcpanel-json-xs-perl?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"4.39-2",
"4.40-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-9334.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libcpanel-json-xs-perl",
"binary_version": "4.40-1"
}
]
}
}
],
"modified": "2026-10-17T13:01:18.188782004Z",
"provider": "osv",
"upstream": [
"CVE-2026-9334"
],
"references": [
"https://ubuntu.com/security/CVE-2026-9334",
"https://www.cve.org/CVERecord?id=CVE-2026-9334"
]
},
"related_cves": [
{
"value": "CVE-2026-9334",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 361564,
"published_at": "2026-06-03T01:16:00+00:00"
}