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-110672 Overview
CVE-2026-110672 is a memory leak vulnerability in Cpanel::JSON::XS versions before 4.80 for Perl. The flaw resides in the decode_hv function, which fails to free decoded object keys when a document is rejected for a missing colon or a duplicate key. Keys of 24 or more bytes, or those containing non-ASCII bytes or escape sequences, are decoded into new scalars that leak on error paths. A long-running process that decodes attacker-controlled JSON retains one key per rejected document, with the size chosen by the sender. Repeated malformed requests exhaust process memory and produce a denial of service.
Critical Impact
Remote attackers can exhaust server memory by sending crafted JSON documents to any long-running Perl service that uses Cpanel::JSON::XS for decoding.
Affected Products
- Cpanel::JSON::XS for Perl, all versions before 4.80
- Perl applications and daemons that call decode_json or equivalent on untrusted input
- Web stacks and APIs using Cpanel::JSON::XS as the JSON parser
Discovery Timeline
- 2026-10-19 - CVE-2026-110672 published to the National Vulnerability Database
- 2026-10-19 - CVE-2026-110672 last modified in NVD
Technical Details for CVE-2026-110672
Vulnerability Analysis
The vulnerability is a missing release of memory after effective lifetime, classified as [CWE-401]. During hash decoding, Cpanel::JSON::XS takes a slow path for quoted keys that are 24 bytes or longer or that contain a non-ASCII byte or an escape sequence. On that slow path the key is materialized into a new scalar (keysv). If the parser then rejects the object because the required : separator is missing, or because the key duplicates an existing one when allow_dupkeys, dupkeys_as_arrayref, and relaxed are all unset, control jumps to the error path without decrementing the reference count on the new scalar. The leaked scalar persists for the lifetime of the Perl interpreter.
Root Cause
The error branches in decode_hv call the ERR macro directly without first invoking SvREFCNT_dec(keysv) to free the slow-path key scalar. The duplicate-key check was introduced in version 4.09, extending the leak surface beyond the earlier missing-colon case. Attackers control the key length and content, so each rejected document can leak an arbitrarily large allocation.
Attack Vector
An attacker submits malformed JSON containing a long or non-ASCII key followed by either a duplicated key or a missing colon. Any persistent Perl process that decodes this input, such as a Mojolicious or Plack worker, leaks memory on every parse failure. Repeated requests drive the worker toward the OOM killer or process memory limit.
key_exists = hv_exists_ent (hv, keysv, 0);
if (UNLIKELY (key_exists)) {
if (!allow_dupkeys)
- ERR ("Duplicate keys not allowed");
+ {
+ SvREFCNT_dec (keysv);
+ ERR ("Duplicate keys not allowed");
+ }
else if (dupkeys_as_arrayref) {
// extend the value to arrayref or push
old_value = HeVAL(hv_fetch_ent (hv, keysv, 0, 0));
Source: GitHub Commit Patch. The patch adds the missing SvREFCNT_dec(keysv) call on the error branches of decode_hv.
Detection Methods for CVE-2026-110672
Indicators of Compromise
- Steady growth of resident set size (RSS) in Perl worker processes that handle JSON input, without a corresponding increase in request throughput.
- Repeated application log entries containing Duplicate keys not allowed or ':' expected from Cpanel::JSON::XS.
- Workers being terminated by the Linux OOM killer or exceeding configured memory limits shortly after bursts of malformed JSON requests.
Detection Strategies
- Inventory installed Perl modules and flag any Cpanel::JSON::XS release earlier than 4.80 using cpan -D Cpanel::JSON::XS or package manager queries.
- Instrument JSON parsing error handlers to count decode failures per client and alert on spikes from a single source.
- Sample heap profiles from long-lived Perl workers and correlate scalar growth with the volume of rejected JSON documents.
Monitoring Recommendations
- Track per-process memory metrics for Perl daemons and alert on monotonically increasing RSS over rolling windows.
- Monitor HTTP 400 responses or application-level JSON error counters on exposed APIs to detect probing.
- Forward application and system logs to a centralized data lake and correlate OOM events with upstream request patterns.
How to Mitigate CVE-2026-110672
Immediate Actions Required
- Upgrade Cpanel::JSON::XS to version 4.80 or later on every host that parses untrusted JSON.
- Restart all long-running Perl processes after upgrading to clear any already-leaked scalars.
- Rate-limit and size-limit JSON request bodies at the reverse proxy or application gateway to blunt amplification.
Patch Information
The fix is included in Cpanel::JSON::XS 4.80. The upstream commit 532b53cf8d2ca5ab6bc24048325566d1f7132425 adds SvREFCNT_dec(keysv) on the error paths in decode_hv so that slow-path keys are released when the object is rejected for a missing colon or a duplicate key. See the MetaCPAN Release Changes and the GitHub Commit Patch.
Workarounds
- Recycle Perl workers aggressively (for example, with MaxRequestsPerChild or process managers such as uwsgi or Starman --max-requests) to bound memory growth until patching completes.
- Validate or reject oversized and non-ASCII JSON keys at an upstream proxy before they reach the Perl parser.
- Where feasible, switch temporarily to an alternate parser such as JSON::PP for untrusted input until the upgrade is deployed.
# Upgrade Cpanel::JSON::XS from CPAN
cpanm Cpanel::JSON::XS@4.80
# Or via distribution package manager (example: Debian/Ubuntu)
sudo apt-get update && sudo apt-get install --only-upgrade libcpanel-json-xs-perl
# Verify installed version
perl -MCpanel::JSON::XS -E 'say $Cpanel::JSON::XS::VERSION'
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

