Threat Feed

CVE-2026-129114: 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

Exploitation: None known · CVSS 9.8 Critical · Unauthenticated · Published 2026-11-14

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.

Enclave's analysis

JSON::XS 3.04 up to 4.05 writes one NUL byte past a heap buffer in the incremental parser. A remote peer streaming data to an incr_parse consumer can trigger it by choosing how input is split into reads. Nobody has shown anything beyond a tiny, state-dependent write, and there's no public exploit or known exploitation. Upgrade to 4.05, which also fixes six sibling JSON::XS CVEs.

Fix

Upgrade Affected product to 4.05; JSON::XS (Perl, CPAN JSON-XS) to 4.05.

Affected versions

ProductVulnerableFixed in
Affected product3.04 before 4.054.05
JSON::XS (Perl, CPAN JSON-XS)>=3.04, <4.054.05

Seen in 2 sources