Skip to main content

CVE-2026-110674: CWE-843 Access of Resource Using Incompatible Type ('Type Confusion')

0
High
Published: 10/19/2026 (10/19/2026, 21:36:28 UTC)
Source: CVE Database V5

Description

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.

Affected software

GitHub Actionsmore threats →cve
Cpanel-JSON-XS
pkg:github/Cpanel-JSON-XS
Affected versions
>=4.33 <4.80

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/19/2026, 18:49:07 UTC

Technical Analysis

The vulnerability exists in Cpanel::JSON::XS versions >=4.33 and <4.80, where the handling of duplicate non-ASCII bare keys under the dupkeys_as_arrayref option in decode_hv leads to type confusion. Specifically, with allow_barekey enabled, non-ASCII bare keys are stored as UTF-8 but looked up as raw bytes, allowing duplicate keys to bypass duplicate-key checks and overwrite earlier values. From version 4.41, under dupkeys_as_arrayref, a bare repeated key replaces an array with a plain value, and subsequent quoted repeats push onto that value as if it were an array, causing a JSON integer to be dereferenced as a pointer. This can lead to process crashes or arbitrary memory dereference when decoding untrusted JSON with relaxed and dupkeys_as_arrayref options.

Potential Impact

Untrusted JSON input processed with the vulnerable versions of Cpanel::JSON::XS using the relaxed and dupkeys_as_arrayref options can cause the application to crash or dereference arbitrary memory addresses. This can lead to denial of service or potentially arbitrary code execution depending on the context of the memory corruption.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using the relaxed and dupkeys_as_arrayref options together when decoding untrusted JSON input with affected versions of Cpanel::JSON::XS. Consider upgrading to a version later than 4.79 once a patch is released.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
CPANSec
Date Reserved
2026-10-14T13:23:26.098Z
State
PUBLISHED

Threat ID: 6ad662ba2cdf04f656803402

Added to database: 10/19/2026, 18:34:34 UTC

Last enriched: 10/19/2026, 18:49:07 UTC

Last updated: 10/19/2026, 22:27:05 UTC

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses