Skip to main content

JSON::XS EUVDEUVD-2026-125916

| CVE-2026-129113 CRITICAL
Integer Underflow (CWE-191)
2026-11-14 CPANSec GHSA-4q52-849c-cv9p
9.1
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

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

  1. Access
    Connect to incremental JSON::XS consumer
  2. Delivery
    Send top-level number plus trailing bytes (1-2)
  3. Exploit
    Parser retains undecoded offset past buffer
  4. Execution
    incr_skip underflows buffer length
  5. Impact
    Process 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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

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

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

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.

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
High
Integrity
None
Availability
High

Lifecycle Timeline

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

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 90% exploitable
Prevalence
High
one of the most widely used Perl JSON modules; vulnerable path is niche
Social Media
2
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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

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

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.

More in Perl

View all
CVE-2012-6329 HIGH POC
7.5 Jan 04

The _compile function in Maketext.pm in the Locale::Maketext implementation in Perl before 5.17.7 does not properly hand

CVE-2017-12814 CRITICAL POC
9.8 Sep 28

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

CVE-2015-8608 CRITICAL POC
9.8 Feb 07

The VDir::MapPathA and VDir::MapPathW functions in Perl 5.22 allow remote attackers to cause a denial of service (out-of

CVE-2018-18314 CRITICAL POC
9.8 Dec 07

Perl before 5.26.3 has a buffer overflow via a crafted regular expression that triggers invalid write operations. Rated

CVE-2018-18312 CRITICAL POC
9.8 Dec 05

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

CVE-2026-13221 CRITICAL POC
9.1 Jul 13

Silently incorrect regular-expression matching in the Perl interpreter (all versions through 5.43.9) lets an oversized a

CVE-2018-18313 CRITICAL POC
9.1 Dec 07

Perl before 5.26.3 has a buffer over-read via a crafted regular expression that triggers disclosure of sensitive informa

CVE-2016-2381 HIGH
7.5 Apr 08

Perl might allow context-dependent attackers to bypass the taint protection mechanism in a child process via duplicate e

CVE-2023-31484 HIGH POC
8.1 Apr 29

CPAN.pm before 2.35 does not verify TLS certificates when downloading distributions over HTTPS. Rated high severity (CVS

CVE-2016-6185 HIGH POC
7.8 Aug 02

The XSLoader::load method in XSLoader in Perl does not properly locate .so files when called in a string eval, which mig

CVE-2018-12015 HIGH POC
7.5 Jun 07

In Perl through 5.26.2, the Archive::Tar module allows remote attackers to bypass a directory-traversal protection mecha

CVE-2020-10543 HIGH
8.2 Jun 05

Perl before 5.30.3 on 32-bit platforms allows a heap-based buffer overflow because nested regular expression quantifiers

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