CVE-2026-129114
Received Received - Intake

Heap Buffer Overflow in JSON::XS Perl Module

Vulnerability report for CVE-2026-129114, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-14

Last updated on: 2026-11-14

Assigner: CPANSec

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-14
Last Modified
2026-11-14
Generated
2026-11-15
AI Q&A
2026-11-14
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
perl json_xs From 3.04 (inc) to 4.05 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-193 A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.
CWE-122 A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects JSON::XS versions from 3.04 to 4.05 for Perl. It causes a one-byte heap buffer overflow when appending a one-byte chunk during incremental parsing. The buffer grows without reserving space for a terminating NUL character, leading to an out-of-bounds write.

Detection Guidance

This vulnerability affects JSON::XS Perl module versions 3.04 to 4.04. To detect it, check the installed version of JSON::XS using the command: perl -MJSON::XS -e 'print $JSON::XS::VERSION'. If the version is between 3.04 and 4.04, the system is vulnerable.

Impact Analysis

An attacker could exploit this by sending specially crafted data to a Perl application using JSON::XS. This could lead to memory corruption, crashes, or potentially arbitrary code execution, depending on the application's context and memory layout.

Compliance Impact

This vulnerability involves a one-byte heap out-of-bounds write in JSON::XS for Perl, which could lead to memory corruption or crashes. Such issues may impact data integrity and confidentiality, potentially violating compliance requirements under GDPR (data protection) or HIPAA (health data security) if exploited. However, specific compliance impacts depend on system context and exploitation scenarios.

Mitigation Strategies

Update JSON::XS to version 4.05 or later to address the heap buffer overflow issue in incr_parse.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-129114. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...