Skip to main content
Vulnerability Database/CVE-2026-110673

CVE-2026-110673: Cpanel::JSON::XS Perl Module DoS Vulnerability

CVE-2026-110673 is a denial of service vulnerability in Cpanel::JSON::XS for Perl that causes stack exhaustion through nested tagged values. This post covers the technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-110673 Overview

CVE-2026-110673 affects Cpanel::JSON::XS versions before 4.80 for Perl. The library allows stack exhaustion through nested tagged values processed under allow_tags inside the decode_tag function. When allow_tags is enabled, the ( byte starts a tagged value whose tag and value are decoded recursively. Each nested element can start another tagged value. Unlike arrays and objects, this recursion is not counted against max_depth. A sequence of ( bytes exhausts the C stack and triggers an uncatchable segmentation fault regardless of the configured depth limit. The flaw maps to [CWE-674: Uncontrolled Recursion].

Critical Impact

Attackers who can submit crafted JSON to a Perl application using allow_tags can crash the process with an uncatchable segmentation fault, causing denial of service.

Affected Products

  • Cpanel::JSON::XS for Perl, all versions prior to 4.80
  • Perl applications that enable the allow_tags decoder option
  • Downstream distributions bundling vulnerable Cpanel::JSON::XS releases

Discovery Timeline

  • 2026-10-19 - CVE-2026-110673 published to the National Vulnerability Database
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-110673

Vulnerability Analysis

The vulnerability resides in the decode_tag routine within the XS backend of Cpanel::JSON::XS. The decoder recursively descends into each tagged value without incrementing the depth counter. An attacker supplies a payload consisting of a long run of ( characters. Each ( triggers another recursive call into decode_sv and back into decode_tag. The native C stack grows until it overflows the OS-imposed limit. The resulting SIGSEGV cannot be caught by Perl's eval block because it originates in native code. This makes the affected Perl process terminate immediately, denying service to any dependent workload.

Root Cause

The root cause is the absence of depth accounting in the tagged-value decode path. Arrays and objects use the DEC_INC_DEPTH and DEC_DEC_DEPTH macros to enforce max_depth. The tagged-value path omitted these macros, so recursion was unbounded. The patch adds DEC_INC_DEPTH and DEC_DEC_DEPTH around the recursive decode_sv call to charge tagged values against max_depth.

Attack Vector

Any Perl service that decodes untrusted JSON with allow_tags set to true is exposed. Typical exposure points include HTTP APIs, message queue consumers, log pipelines, and configuration loaders that accept external input. The attacker only needs network reachability to the parsing endpoint and the ability to supply a JSON string containing many consecutive ( bytes.

text
// Patch excerpt from XS.xs (decode_tag): charge tagged values against max_depth
   decode_ws (dec);
 
+  DEC_INC_DEPTH; /* a "(" here recurses straight back into decode_tag */
   tag = decode_sv (aTHX_ dec, NULL);
+  DEC_DEC_DEPTH;
   if (!tag)
     goto fail;

Source: GitHub Commit Patch

Detection Methods for CVE-2026-110673

Indicators of Compromise

  • Perl worker processes terminating with SIGSEGV shortly after processing inbound JSON payloads.
  • Crash dumps or dmesg entries referencing perl and segmentation faults inside Cpanel/JSON/XS.so.
  • Inbound requests containing long contiguous sequences of ( characters in JSON bodies.

Detection Strategies

  • Inventory Perl applications and identify any invocation of Cpanel::JSON::XS with allow_tags(1) or the equivalent constructor option.
  • Inspect reverse proxy and web server access logs for JSON payloads with unusually high counts of ( characters.
  • Correlate repeated worker crashes with request logs to pinpoint the triggering client and payload.

Monitoring Recommendations

  • Alert on abnormal rates of Perl process restarts under supervisors such as systemd, Starman, or uWSGI.
  • Monitor kernel audit logs for recurring segmentation faults on hosts running Perl JSON parsers.
  • Track outbound 5xx responses from Perl API gateways that coincide with specific client IPs or user agents.

How to Mitigate CVE-2026-110673

Immediate Actions Required

  • Upgrade Cpanel::JSON::XS to version 4.80 or later across all Perl environments.
  • Audit application code for allow_tags usage and disable it unless strictly required.
  • Place a request-size and character-frequency filter in front of exposed JSON endpoints as an interim control.

Patch Information

The fix is included in Cpanel::JSON::XS 4.80. The commit 995eb484a9351753e2a8ec3317918b5b4a4e086a adds depth accounting to decode_tag, causing deeply nested tagged values to fail cleanly against max_depth instead of exhausting the stack. Release notes are available on MetaCPAN.

Workarounds

  • Disable allow_tags on any decoder instance that processes untrusted input.
  • Reject JSON payloads larger than an application-defined threshold at the ingress layer.
  • Drop or sanitize requests containing excessive repetition of ( characters before they reach the Perl parser.
bash
# Example cpanm upgrade to the patched release
cpanm Cpanel::JSON::XS@4.80

# Verify installed version
perl -MCpanel::JSON::XS -e 'print $Cpanel::JSON::XS::VERSION, "\n"'

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.