Cpanel::JSON::XS versions from 4.33 before 4.80 for Perl miss duplicate non-ASCII bare keys, allowing type confusion under dupkeys_as_arrayref in deco...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:16.04:LTSlibcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSlibcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSlibcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSlibcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSlibcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10libcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSlibcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:16.04:LTSlibcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:18.04:LTSlibcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
| Ubuntu:Pro:20.04:LTSlibcpanel-json-xs-perl |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
Cpanel::JSON::XS versions from 4.33 before 4.80 for Perl miss duplicate non-ASCII bare keys, allowing type confusion under dupkeys_as_arrayref in decode_hv. With allow_barekey, which relaxed enables, a bare key containing a non-ASCII byte is stored as UTF-8 but looked up as raw bytes, so a repeated key escapes the duplicate-key check and replaces the earlier value. From 4.41, under dupkeys_as_arrayref, a bare repeat replaces the array that collects a key's values with a plain value, and the next quoted repeat pushes onto that value as if it were an array. A JSON integer there is dereferenced as a pointer. Untrusted JSON decoded with relaxed and dupkeys_as_arrayref can crash the process or dereference an address chosen by a JSON number.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report lists.security.metacpan.org