Read the docs

Off-by-one heap write in JSON::XS for Perl incr_parse

Priority LOW 22CWE-122Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from CNA.

Summary

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 is sized without room for the terminating NUL, so a one-byte chunk can leave the NUL one byte outside the allocation. A peer streaming data to an incr_parse consumer can trigger a one-byte heap out-of-bounds write by choosing how the input is split into reads. The sources do not report exploitation.

Written with Claude Haiku 5.5 from the sources below · 2026-11-14

Description from the CNA

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.

Why it matters now

EPSS 0.00204 10th percentileScored 2026-11-16
Fix Fixed JSON-XS: 4.05

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—JSON-XS3.04 to before 4.054.05Patch availableCNA
  • JSON-XS Vendor— Affected 3.04 to before 4.05 Fixed in 4.05 Patch available CNA

Remediation

Upgrade JSON-XS to version 4.05 or later, which fixes this flaw.

Written with Claude Haiku 5.5 from the sources below · 2026-11-14

  • Fix · CNA JSON-XS Fixed in 4.05

Timeline

  1. 2026-11-14 Threatist record created from CVE-2026-129114
  2. 2026-11-14 Alias added: GHSA-pmvq-m677-6p9m

References

Sources