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.
Weaknesses
- CWE-193 — CWE-193 Off-by-one Error
- CWE-122 — CWE-122 Heap-based Buffer Overflow
Affected products
| Vendor | Product | Versions |
|---|---|---|
| — | — | 3.04 to <4.05 [affected] |
References
- https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes (release-notes)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 15 Nov 2026 08:05 UTC.