Bug 2555759 (CVE-2026-110674)

Summary: CVE-2026-110674 perl-Cpanel-JSON-XS: Type confusion via duplicate non-ASCII bare keys
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in perl-Cpanel-JSON-XS. When the allow_barekey configuration (enabled by the relaxed setting) is active, a bare key containing a non-ASCII byte is stored as UTF-8 but looked up as raw bytes. This allows a repeated key to bypass the duplicate-key check and replace the earlier value. Under the dupkeys_as_arrayref configuration, a bare repeating key replaces the array that normally collects a key's values with a plain value. If a subsequent quoted repeat occurs, the parser attempts to push onto that value as if it were an array. If a JSON integer is present there, it is erroneously dereferenced as a pointer. An attacker can exploit this type confusion by submitting crafted JSON payloads to dereference an arbitrary address, resulting in a Denial of Service (DoS).
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2556471, 2556472    
Bug Blocks:    

Description OSIDB Bzimport 2026-10-19 18:34:59 UTC
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.