CVE-2026-9516: Cpanel::JSON::XS versions before 4.41 for Perl allow denial of service via UTF-8 BOM prefixed input when a decode filter callback throws

Published Jun 3, 2026
·
Updated

Cpanel::JSON::XS versions before 4.41 for Perl allow denial of service via UTF-8 BOM prefixed input when a decode filter callback throws.

To skip a leading 3-byte UTF-8 BOM, decodejson() advances the input scalar's string pointer past the mark with SvPVset() and restores it only on the normal return path. When decoding aborts through a Perl exception, for example a filterjsonobject callback that croaks, the restore is skipped and the scalar is left with its string pointer offset into its own buffer and a shortened length.

When that scalar is later freed, the allocator receives an invalid pointer and the interpreter aborts. A single BOM prefixed document decoded with a throwing filter callback crashes any caller.

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
  2. Upgrade

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

    Fixed in 4.41 or later

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·11:09 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-9516?

The severity of CVE-2026-9516 is rated at risk level 30.

2

How do I fix CVE-2026-9516?

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

3

What software is affected by CVE-2026-9516?

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

4

What type of vulnerability is CVE-2026-9516?

CVE-2026-9516 is a denial of service vulnerability caused by improper handling of UTF-8 BOM prefixed input.

5

When was CVE-2026-9516 published?

CVE-2026-9516 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