Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessConnect to incremental JSON::XS consumer
-
DeliverySend top-level number plus trailing bytes (1-2)
-
ExploitParser retains undecoded offset past buffer
-
Executionincr_skip underflows buffer length
-
ImpactProcess exits via uncatchable OOM (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer underflow checks
|
| Exploitation Conditions | Exploitation requires the target application to use the JSON::XS incremental streaming parser (incr_parse/incr_text), not the ordinary decode_json interface, and to feed it attacker-controlled input. The concrete trigger is a top-level number followed by additional bytes (e.g. '1-2') so the decoder stops at the end of the valid number, the buffer is emptied with undecoded bytes still present, and a subsequent incr_parse call is made with no new input, after which incr_skip (the documented post-error recovery) removes more bytes than exist and the buffer length wraps. Limiting factors: applications using only the non-incremental decode interface are not affected; affected versions are 4.0_00 up to but not including 4.05; the fix is to upgrade to JSON::XS 4.05. No authentication is indicated by the CVSS vector (PR:N), and no user interaction is required (UI:N). |
| Impact | Signals conflict and must be weighed against each other. The NVD CVSS of 9.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H) looks critical, but EPSS is only 0.20% (10th percentile), there is no CISA KEV listing, and no exploit code is confirmed as working - so the raw score overstates likely mass exploitation. The exploitation status is: no public exploit identified at time of analysis, though the oss-security disclosure (seclists q4/706) documents the triggering input '1-2'. The CVSS confidentiality rating (C:H) is not well supported by the description: the demonstrated impact is the Perl process exiting through the uncatchable out-of-memory path, i.e. a denial of service (availability), driven by an integer underflow (CWE-191) that wraps the incremental buffer length - the C:H and the 'Information Disclosure' tag appear to derive from the out-of-bounds re-read of undecoded buffer bytes, which is plausible but not demonstrated in the available sources. SSVC sub-metrics (automatable, technical impact) were not provided; only the vuln.today 'act_now' priority label is given, which conflicts with the low EPSS and likely reflects an easy-to-trigger memory-safety flaw in a popular library rather than observed widespread attacks. Real-world risk is strongly gated by a usage condition absent from the raw metrics: only applications using the incremental streaming parser (incr_parse/incr_text) against untrusted peer input are exposed. For those, priority is genuinely high; for the majority using ordinary decode_json, this is not reachable. |
| Exploit ScenarioDerived | A Perl service that uses the JSON::XS incremental parser (incr_parse/incr_text) to read JSON streamed from a network peer is the target. The attacker sends input such as '1-2'; after the top-level number is decoded, undecoded trailing bytes leave a stale offset, and a later incr_parse with no new input plus the documented incr_skip recovery underflows the buffer length, so the next incr_text exits the process through Perl's uncatchable out-of-memory path, crashing the consumer. No public exploit identified at time of analysis, though the oss-security post documents the trigger. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 17, 2026
Remote denial of service in JSON::XS 4.0_00 through 4.04 lets unauthenticated attackers crash Perl applications that use the incremental streaming parser (incr_parse/incr_text) with attacker-controlled input. A top-level number followed by trailing bytes such as "1-2" leaves undecoded bytes in an emptied buffer; a subsequent incr_parse call with no new input moves the offset past the buffer end, and the documented incr_skip recovery then wraps the buffer length, leading to an uncatchable out-of-memory exit when incr_text is next read. The assessed impact is availability only; no public exploit was identified at time of analysis, EPSS is 0.20% (10th percentile), and the vuln.today decision label is act_now, so upgrade to JSON::XS 4.05 should be prioritized.
RemediationAI
Upgrade to JSON::XS 4.05 using the vendor release documented at https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes; this is the vendor-released fixed version and should be prioritized under the act_now decision label. If an immediate upgrade is not possible, reduce exposure by ensuring attacker-controlled input is not passed to incr_parse/incr_text consumers, or by disabling the incremental streaming path where the application permits it, because the non-incremental decode interface is not affected. Additional advisory context is available at https://seclists.org/oss-sec/2026/q4/706. No separate patch identifier or backport is given in the available data.
Affected ProductsAI
JSON::XS for Perl versions 4.0_00 up to but not including 4.05 are affected. The vendor change log for the fixed release is at https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes, with additional advisory context at https://seclists.org/oss-sec/2026/q4/706 and https://nvd.nist.gov/vuln/detail/CVE-2026-129113. No CPE strings were provided. Exposure is limited to applications that use the incremental streaming parser (incr_parse/incr_text) and feed it attacker-controlled input; per the assessment, applications using only the non-incremental decode interface are not affected.
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 module providing a fast JSON encoder/decoder, and the flaw is in its incremental streaming API rather than the ordinary decode_json path. The parser treats any run of digits, signs, dots, and exponent markers as a single number, but the decoder stops at the end of the valid number, leaving the parser with an offset into bytes that were not decoded; the buffer is then emptied without clearing those bytes. A later incr_parse call made without new input reads those stale bytes again and advances the offset past the end of the buffer, so incr_skip - the documented error-recovery routine - removes more bytes than the buffer holds and the length calculation underflows (CWE-191). Affected versions are 4.0_00 up to but not including 4.05; per the assessed CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, exploitation is remote and unauthenticated with no user interaction and affects availability only, not confidentiality or integrity. The trigger requires a consumer of incr_parse/incr_text that accepts attacker-controlled data; applications using only non-incremental decoding are not affected.
Know when Perl gets its next vulnerability
- 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:H/I:N/A:H
A remote peer sends simple input (AV:N, AC:L, PR:N, UI:N) to an app using the incremental parser; demonstrated impact is an OOM process exit, so A:H and C/I:N.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
3DescriptionCVE.org
JSON::XS versions from 4.0_00 before 4.05 for Perl corrupt the incremental buffer length by chopping past its end in incr_skip after a top-level number.
The incremental parser scans any run of digits, signs, dots and exponent markers as one number, but the decoder stops at the end of a valid number, so the parser keeps an offset into bytes it has not decoded. It then empties the buffer without clearing those bytes, and a later incr_parse call without new input reads them again and moves the offset past the end of the buffer. incr_skip, the documented recovery after an error, removes that many bytes and the buffer length wraps.
A peer sending input such as "1-2" to an incr_parse consumer can make the next read of incr_text exit the process through perl's uncatchable out-of-memory path.
Executive ViewAI
A critical denial-of-service vulnerability in the widely used JSON::XS Perl library (versions 4.0_00 through 4.04) can crash applications that process attacker-supplied input through its incremental streaming parser. Because JSON::XS underpins many Perl-based services and APIs, any internet-facing or customer-facing Perl application using incremental parsing could be taken down by a single crafted request, creating availability risk and potential service disruption for users and revenue-generating systems.
No vendor-released patch identified at time of analysis; note that upgrading to JSON::XS 4.05 is the remediation path referenced in the advisory. Interim mitigations include avoiding use of the incremental parser (incr_parse/incr_text) on attacker-controlled input, validating and rejecting malformed trailing-byte patterns before parsing, isolating affected Perl services with rate limiting and network segmentation, and monitoring for abnormal process exits or memory exhaustion.
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
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand
Stack-based buffer overflow in the CPerlHost::Add method in win32/perlhost.h in Perl before 5.24.3-RC1 and 5.26.x before
The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of
Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated
Perl before 5.26.3 and 5.28.0 before 5.28.1 has a buffer overflow via a crafted regular expression that triggers invalid
Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a
Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa
Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e
CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS
The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig
In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha
Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers
EUVD-2026-125916
GHSA-4q52-849c-cv9p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB