Skip to main content

JSON::XS CVE-2026-129114

| EUVDEUVD-2026-125915 CRITICAL
Off-by-one Error (CWE-193)
2026-11-14 CPANSec GHSA-pmvq-m677-6p9m
9.8
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

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

  1. Access
    Stream data to incr_parse consumer
  2. Delivery
    Split input so a one-byte chunk is appended
  3. Exploit
    Hit buffer whose front was freed by earlier decodes
  4. Execution
    Trigger off-by-one NUL write past heap allocation
  5. Impact
    Corrupt adjacent heap memory / crash consumer

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Off-by-one prevention
Exploitation Conditions

Requires that the target application use the JSON::XS incremental streaming API (incr_parse) and feed it data from an untrusted peer who controls how the input stream is chunked into reads; the overflow triggers specifically when a one-byte chunk is appended to an incremental buffer whose front was already removed by earlier decodes, so the one-byte (plus-NUL) request fits the existing allocation and no reallocation occurs, placing the NUL one byte past the buffer. Affected versions are 3.04 up to but not including 4.05. LIMITING FACTORS: this does not affect ordinary one-shot decode_json usage - only consumers using the incremental parser are exposed; the attacker must control stream chunking (send a deliberate one-byte read) and the heap/buffer must be in the specific post-decode state described. The only complete fix stated by the sources is updating to JSON::XS 4.05.

Impact

The signals conflict sharply and must be weighed, not taken at face value. NVD scores this 9.8 CRITICAL with C:H/I:H/A:H, but the described defect is a single one-byte out-of-bounds write of the terminating NUL one byte past a heap allocation (CWE-193) - a magnitude of corruption that realistically risks heap-metadata damage, a crash, or limited adjacent corruption rather than the full confidentiality/integrity/availability compromise the vector asserts; the C:H/I:H/A:H rating appears inflated relative to the mechanism actually described. Exploitation-probability signals are low and point to non-widespread risk: EPSS is 0.20% (10th percentile), SSVC exploitation status is 'none' (no observed exploitation), and the CVE is not in CISA KEV - no public exploit identified at time of analysis. The upward pressure comes from SSVC Automatable=yes and Technical Impact=total plus the vuln.today 'act_now' priority label, which together drive urgency despite the low EPSS. Net: this is a genuine remotely-reachable memory-safety bug that should be patched promptly per the act_now decision, but the gap between the 9.8/total-impact framing and a described single-NUL-byte overflow means the practical worst case (whether it reaches code execution versus denial of service) is not established by the available evidence and should be treated as unproven, not confirmed RCE.

Exploit ScenarioDerived

A service that feeds a network peer's data into a JSON::XS incremental parser (incr_parse) lets that peer choose how the byte stream is split into reads. By sending a one-byte chunk when the internal incremental buffer's front has been consumed by earlier decodes, the peer causes JSON::XS to append without reserving room for the NUL, writing one byte past the heap allocation. No public exploit identified at time of analysis; the realistic observed outcome is heap corruption that may crash the consumer.

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

A one-byte heap out-of-bounds write in JSON::XS (Perl) versions 3.04 through 4.04 allows a peer streaming data to an incr_parse consumer to corrupt memory one byte past a heap allocation by controlling how the incoming stream is split into reads. Only applications using the incremental streaming parser are exposed - ordinary one-shot decode_json consumers are not - and the overwrite is a single terminating NUL byte placed outside the buffer, so real-world impact depends on what the adjacent heap byte controls; the assessed vector (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L) is materially more conservative than the 9.8 base score published with the CVE. No public exploit identified at time of analysis, EPSS is low at 0.20% (10th percentile), and SSVC records exploitation as none while marking the flaw automatable with total technical impact; despite that, vuln.today assigns an act_now decision label, and the sources state the only complete fix is upgrading to JSON::XS 4.05.

RemediationAI

Vendor-released patch: JSON::XS 4.05. The sources state that updating to 4.05 is the only complete fix, so upgrade the distribution (cpanm JSON::XS@4.05 or your distribution package once it ships 4.05) and rebuild dependent XS modules against it; verify the installed version with perl -MJSON::XS -e 'print $JSON::XS::VERSION'. Because the trigger requires the remote peer to control how the stream is chunked into reads, aggregating or re-chunking upstream input before it reaches incr_parse removes the precondition described in the advisory, and keeping untrusted streams off the incremental parser in favour of one-shot decode_json avoids the affected code path entirely - but neither is presented as a substitute for the upgrade, which remains the only complete fix stated. Advisory and release references: https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes, https://seclists.org/oss-sec/2026/q4/706, https://vuldb.com/vuln/437437, https://nvd.nist.gov/vuln/detail/CVE-2026-129114.

Affected ProductsAI

The JSON::XS Perl distribution, versions 3.04 through the releases immediately preceding 4.05 (i.e., 3.04 <= version < 4.05), running on any platform where the XS module is compiled; no CPE identifiers were supplied with the intelligence data. Exposure is limited to code paths that call the incremental streaming API incr_parse on data originating from an untrusted peer - applications that only use decode_json are not affected per the assessment. Release notes for the fixed version are at https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes, with the upstream disclosure thread at https://seclists.org/oss-sec/2026/q4/706 and additional advisory records at https://vuldb.com/vuln/437437, https://nvd.nist.gov/vuln/detail/CVE-2026-129114 and ENISA EUVD-2026-125915.

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 XS (C-level) JSON encoder/decoder, so parsing operates directly on heap-allocated byte buffers rather than Perl-managed scalars. Its incremental API, incr_parse, buffers partial input across calls and grows its working buffer to roughly one and a half times the length it must hold, without reserving space for the terminating NUL byte - the root cause class is CWE-193 (off-by-one). For an empty incremental buffer receiving a one-byte chunk, the requested capacity is just one byte, a size that a buffer whose front was already consumed by earlier decodes can already satisfy, so the growth path performs no reallocation and the NUL terminator is written one byte past the end of the allocation. The bug is therefore state-dependent: it requires the specific post-decode buffer layout plus an appended one-byte chunk, and it is reachable only by a peer who determines how the byte stream is chunked into reads. The supplied data contains no CPE strings; the affected component is identified by the JSON::XS distribution versions 3.04 up to but not including 4.05, and the trigger preconditions are as described in the upstream CPANSec/oss-security disclosure.

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.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 4.8 MEDIUM

Remote peer-triggered via incr_parse (AV:N, PR:N, UI:N) but needs a specific freed-front buffer state and controlled chunking (AC:H); a single NUL overflow gives limited integrity/availability impact, not confidentiality (C:N/I:L/A:L).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/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
High
Availability
High

Lifecycle Timeline

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

DescriptionCVE.org

JSON::XS versions from 3.04 before 4.05 for Perl write one byte past a heap buffer when appending a one-byte chunk in incr_parse.

The incremental buffer grows to one and a half times the length it must hold, with no room reserved for the terminating NUL. For an empty buffer and a one-byte chunk that request is one byte, which a buffer whose front was removed by earlier decodes can already have, so nothing is reallocated and the NUL lands one byte past the allocation.

A peer streaming data to an incr_parse consumer, choosing how the input is split into reads, can cause a one-byte heap out-of-bounds write.

Executive ViewAI

Why It Matters

CVE-2026-129114 is a critical-severity memory corruption flaw in the JSON::XS Perl library (versions 3.04-4.04) that only affects applications using the incremental streaming parser. While no active exploitation has been observed, the potential for remote peer-triggered heap corruption could disrupt service availability and data integrity for impacted systems, warranting immediate remediation to avoid operational disruption.

Business Impact: Medium
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigation is to avoid the incr_parse streaming parser entirely and use one-shot decoding until version 4.05 can be deployed.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
High
JSON::XS is the de facto fast JSON module across Perl applications
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
Medium
Technical Impact
Total

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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