CVE-2026-129114
AI summary
JSON::XS for Perl from 3.04 before 4.05 can write one byte past a heap buffer in incr_parse, triggerable by a remote peer streaming data and controlling how input is split. Critical (9.8); upgrade to 4.05.
Official 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.
- Published
- 2026-11-14 12:17 UTC
- Modified
- 2026-11-24 19:10 UTC
- CVSS
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - EPSS
- 0.52% (percentile 38)
- ENISA EUVD
- EUVD-2026-125915
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: total
- CWE
- CWE-122
CVSS vector
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Scope
- unchanged
- Confidentiality
- high
- Integrity
- high
- Availability
- high
References
- NVD · CVE.org
- metacpan.org
https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes