CVE-2026-9334: Cpanel::JSON::XS versions before 4.41 for Perl allow type confusion via duplicate object keys when dupkeys_as_arrayref is enabled

Published Jun 3, 2026
·
Updated

Cpanel::JSON::XS versions before 4.41 for Perl allow type confusion via duplicate object keys when dupkeysasarrayref is enabled.

decodehv() collapses duplicate object keys into an array reference under dupkeysasarrayref. The branch reached for a duplicate key tests SvTYPE (oldvalue) != SVtRV && SvTYPE (SvRV (oldvalue)) != SVtPVAV, which evaluates SvRV(oldvalue) before establishing that oldvalue 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 dupkeysasarrayref enabled is crashed, and the incompatible access follows a pointer taken from attacker controlled scalar contents.

Affected Software

2 affected components
cpan/Cpanel/JSON::XS<4.41
Rurban Cpanel\<4.41

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Cpanel::JSON::XS to a version that resolves this vulnerability.

    Fixed in 4.41

Event History

Jun 3, 2026
CVE Published
via MITRE·12:15 AM
Data Sourced
via MITRE·12:15 AM
RemedyDescriptionWeakness
Data Sourced
via NVD·01:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 28, 58520
Event
via FIRST·09:28 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-9334?

CVE-2026-9334 has a risk rating of 30.

2

What does CVE-2026-9334 affect?

CVE-2026-9334 affects Cpanel::JSON::XS versions prior to 4.41 for Perl.

3

How do I fix CVE-2026-9334?

To mitigate CVE-2026-9334, upgrade to Cpanel::JSON::XS version 4.41 or later.

4

What type of vulnerability is CVE-2026-9334?

CVE-2026-9334 is a type confusion vulnerability caused by duplicate object keys.

5

When was CVE-2026-9334 published?

CVE-2026-9334 was published on June 3, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203