Skip to main content

JSON::XS EUVDEUVD-2026-125918

| CVE-2026-124540 HIGH
Uncontrolled Recursion (CWE-674)
2026-11-14 CPANSec GHSA-r77g-jhw3-q6vc
7.5
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit JSON payload to allow_tags decoder
  2. Exploit
    Long run of '(' recurses in decode_tag
  3. Impact
    C stack exhausted, uncatchable segfault crashes process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

The affected application must call JSON::XS to decode untrusted input with the allow_tags option enabled, which activates '(' as the start of a recursively-decoded tagged value; allow_tags is NOT the default, so only deployments that explicitly opt into tagged-value decoding are exposed. Given that condition, exploitation is remote and unauthenticated: the attacker only needs to supply a long run of '(' bytes to the decoder. The key limiting factor is this non-default configuration - default JSON::XS usage is unaffected - and the max_depth setting provides no protection because tagged-value nesting is not counted against it.

Impact

This is a denial-of-service vulnerability: the CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, base 7.5) shows a remote, low-complexity, unauthenticated trigger with availability-only impact and no confidentiality or integrity loss - consistent with CWE-674 uncontrolled recursion causing an uncatchable segmentation fault. The real-world signals temper this: EPSS is 0.20% (10th percentile), the CVE is NOT on CISA KEV (status: no), and no verified public exploit is indicated - so this is a credible but non-emergency issue. The vuln.today decision label is 'this_week', which aligns with a patch-this-week posture rather than immediate emergency. The most important caveat is a precondition the CVSS vector does not capture: exploitation requires the application to have decoded untrusted input with allow_tags enabled, which is NOT the JSON::XS default - so the PR:N/AC:L network-exploitable rating only holds for the subset of deployments that opt into tagged-value decoding. A low EPSS with no KEV and a non-default prerequisite points to limited practical exposure despite the 'High' availability rating; treat as a scheduled patch, not a fire drill.

Exploit ScenarioDerived

An application uses JSON::XS (before 4.05) with allow_tags enabled to parse attacker-controlled JSON, for example a web service accepting request bodies. The attacker submits a payload consisting of a long run of '(' bytes, each starting another recursively-decoded tagged value that is not counted against max_depth, exhausting the C stack and crashing the Perl process with a segfault. No public working exploit is confirmed, but the trigger is trivially constructed from the description.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 17, 2026

Stack exhaustion in JSON::XS versions before 4.05 for Perl allows remote, unauthenticated attackers to crash the decoder and cause denial of service by supplying a run of '(' bytes when the application has explicitly enabled the non-default allow_tags option. Because tagged-value nesting is not counted against max_depth, configuring that limit provides no protection, and the resulting C stack exhaustion produces an uncatchable segmentation fault. No public exploit was identified at time of analysis, and EPSS is low at 0.20% (10th percentile).

RemediationAI

Vendor-released patch: upgrade JSON::XS to 4.05 or later, as documented in the MetaCPAN change log at https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes. If upgrading is not immediately possible, disable allow_tags when decoding untrusted input, since the vulnerable code path is only reachable when that non-default option is enabled. Do not rely on max_depth as a workaround, because tagged-value nesting is not counted against it; the CPANSec advisory at https://seclists.org/oss-sec/2026/q4/706 and the NVD entry at https://nvd.nist.gov/vuln/detail/CVE-2026-124540 provide additional details.

Affected ProductsAI

JSON::XS for Perl versions before 4.05 are affected. No CPE strings were supplied in the available data. The vendor change log for the fixed JSON::XS 4.05 release is available at https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes, and the CPANSec report is at https://seclists.org/oss-sec/2026/q4/706. Only deployments that explicitly enable the non-default allow_tags option are exposed; default JSON::XS usage is unaffected.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

JSON::XS is a Perl JSON encoder/decoder implemented in C for performance. The allow_tags option enables parsing of a non-standard tagged-value syntax in which '(' introduces a tagged value; decode_tag recursively decodes the tag and value, and each component can itself begin another tagged value. Unlike array and object nesting, this recursion path is not counted against max_depth, so input consisting of many '(' bytes drives unbounded native recursion until the C stack is exhausted. The resulting segmentation fault is uncatchable from Perl, which aligns with CWE-674 (uncontrolled recursion) and the assessed availability-only impact.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Remote unauthenticated attacker sends crafted input to a decoder; availability-only segfault, no C/I impact; allow_tags is a deployment precondition, not an attacker privilege, so PR:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

3
CVSS changed
Nov 17, 2026 - 16:22 NVD
7.5 (HIGH)
CVE Published
Nov 14, 2026 - 11:52 cve.org
UNKNOWN (no severity yet)
CVE Published
Nov 14, 2026 - 11:52 cve.org
HIGH 7.5

DescriptionCVE.org

JSON::XS versions before 4.05 for Perl allow stack exhaustion via nested tagged values under allow_tags in decode_tag.

With allow_tags, "(" starts a tagged value. Its tag and value are decoded recursively, and each can start another tagged value. Unlike arrays and objects, this nesting is not counted against max_depth.

A run of "(" bytes exhausts the C stack and triggers an uncatchable segmentation fault regardless of max_depth.

Executive ViewAI

Why It Matters

A high-severity vulnerability in JSON::XS versions before 4.05 for Perl enables remote, unauthenticated attackers to crash services by sending specially crafted input, leading to denial of service. Organizations using applications that enable the non-default allow_tags option are at risk, potentially causing service outages and disrupting business operations. Leadership should prioritize identification and mitigation of affected systems to maintain availability and customer trust.

Business Impact: High
Compensating Controls

If the allow_tags option is enabled, disable it. Implement input validation to reject or sanitize inputs containing repeated '(' characters. Use a web application firewall (WAF) or reverse proxy to filter malicious payloads. Consider migrating to an alternative JSON parsing library that is not affected.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
High
JSON::XS is the standard fast JSON parser across Perl deployments
Social Media
3
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy