Off-by-one heap write in JSON::XS for Perl incr_parse
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
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | JSON-XS | 3.04 to before 4.05 | 4.05 | Patch available | CNA |
- 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
- 2026-11-14 Threatist record created from CVE-2026-129114
- 2026-11-14 Alias added: GHSA-pmvq-m677-6p9m
References
Sources
- CVE-2026-129114 · CVE Program
- CVE-2026-129114 · NVD
- FIRST EPSS
- GHSA-pmvq-m677-6p9m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences