Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach application's incr_parse stream consumer
-
ExploitSend chunk with embedded NUL byte
-
ExecutionStream unbounded data past max_size
-
ImpactBuffer grows unchecked, exhausting process memory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target application to use the JSON::XS incremental parser (incr_parse) to consume data from an attacker-reachable or peer-controlled stream; standard one-shot decode() is not affected. The attacker must be able to send a NUL byte within the first max_size bytes followed by continued data on that stream. The core flaw is that incr_parse compares max_size against parse progress (which halts at the NUL, treated as end-of-input) rather than against actual buffer length, and incr_skip cannot remove the NUL, so the configured max_size safeguard provides no protection. Limiting factors: only incr_parse consumers are vulnerable, the application must expose incremental parsing to untrusted input, and impact is confined to memory-exhaustion denial of service (no code execution or data disclosure). Complete remediation is upgrading to JSON::XS 4.05. |
| Impact | Signals align toward a genuine-but-bounded denial-of-service issue rather than an urgent emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H = 7.5 HIGH) reflects a remote, low-complexity, unauthenticated availability-only impact - there is no confidentiality or integrity exposure (CWE-770, uncontrolled resource consumption). EPSS is low at 0.19% (8th percentile), and the vulnerability is not on CISA KEV, so there is no evidence of active or widespread exploitation; this is consistent with an availability-only bug that yields no attacker foothold. The vuln.today decision label is 'this_week', indicating prompt but non-emergency remediation. A key nuance tempers the AV:N/PR:N/AC:L score: exploitation is not against JSON::XS in the abstract but specifically against applications that call incr_parse to consume a peer-controlled stream, so real-world exposure is narrower than the raw vector suggests. No SSVC decision record, KEV entry, or POC flag is present in the input, so automatability and exploitation status beyond the description cannot be independently assessed. Net: a legitimate patch-this-cycle item for anyone using JSON::XS incremental parsing on untrusted streams, not a high-CVSS-but-trivial issue, yet far from a drop-everything emergency. |
| Exploit ScenarioDerived | An application uses JSON::XS incr_parse to incrementally decode JSON arriving from a network peer, relying on max_size to cap buffering. A malicious or compromised peer sends a chunk containing a NUL byte within the first max_size bytes followed by an unbounded stream of additional data; because the parser measures progress (which stops at the NUL) rather than buffer length, max_size never trips and the buffer grows until the process exhausts memory. No public proof-of-concept or exploit code is identified in the provided sources, and because the impact is availability-only the attacker gains no code execution or data access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 17, 2026
Memory exhaustion in JSON::XS before 4.05 for Perl lets unauthenticated remote attackers crash or stall applications that feed attacker-reachable data into the incremental parser (incr_parse). A NUL byte within the first max_size bytes is treated as end-of-input, so the module compares max_size against parse progress rather than the growing buffer and incr_skip cannot remove the NUL; the buffer then expands without the configured cap. No public exploit was identified at time of analysis and EPSS is 0.19% (8th percentile); only incr_parse consumers are exposed, with impact limited to denial of service.
RemediationAI
Upgrade to JSON::XS 4.05, which is the complete remediation per the vendor change log at https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes. If upgrading cannot be done immediately, remove exposure by not using incr_parse to consume attacker-reachable or peer-controlled streams; applications that can switch to one-shot decode() are not affected by this flaw, with the trade-off that one-shot parsing requires the full document to be buffered and changes streaming behavior. Raising or tuning max_size is not a mitigation because the limit check is bypassed by the NUL-byte condition. See the oss-security advisory at https://seclists.org/oss-sec/2026/q4/706 for details. The vuln.today priority is this_week.
Affected ProductsAI
JSON::XS versions before 4.05 for Perl are affected. No CPE identifiers were provided in the input. The vendor change log for the 4.05 release is at https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes; the oss-security advisory is at https://seclists.org/oss-sec/2026/q4/706. The EUVD entry is EUVD-2026-125920 and the NVD detail is https://nvd.nist.gov/vuln/detail/CVE-2026-124536.
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 serialization module. The flaw is in the incremental parsing API: incr_parse appends each incoming chunk to an internal buffer, but max_size is checked against how far parsing has progressed rather than against the buffer length. A NUL byte is treated as the end of input, so a NUL within the first max_size bytes keeps the progress counter below the limit while chunks continue to be appended; incr_skip cannot remove the NUL. This is CWE-770 (Allocation of Resources Without Limits or Throttling). One-shot decode() is not affected; exposure is limited to applications that use incr_parse on a stream that an attacker or peer can control. The trigger is described in the available sources as this NUL/progress-check interaction.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
A remote peer streaming data with an embedded NUL requires no auth, no interaction, and low complexity, yielding availability-only memory exhaustion (C:N/I:N/A:H), matching the vendor vector.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
3DescriptionCVE.org
JSON::XS versions before 4.05 for Perl allow memory exhaustion by buffering incremental input past max_size after a NUL byte in incr_parse.
The parser appends each chunk to its buffer and compares max_size with how far it has progressed, not with the buffer length. It treats a NUL byte as the end of the input, so a NUL within the first max_size bytes keeps it short of the limit. The buffer keeps growing, and incr_skip cannot remove the NUL.
A peer streaming data to an incr_parse consumer can exhaust process memory regardless of max_size.
Executive ViewAI
A high-severity vulnerability in Perl's JSON::XS library (versions before 4.05) allows unauthenticated attackers to cause memory exhaustion and crash applications that use the incremental parser. This affects any Perl-based service processing attacker-supplied data, potentially leading to service outages and operational disruption. Leadership should prioritize remediation because the library is widely embedded and a successful attack can halt critical business functions.
No vendor-released patch identified at time of analysis
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-125920
GHSA-jj44-v2qc-wcv3
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB