Memory exhaustion in JSON::XS incremental parsing after a NUL byte
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA. Impact type from CWE-770.
Summary
JSON::XS versions before 4.05 for Perl buffer incremental input without enforcing the max_size limit. The parser compares max_size with its progress instead of the buffer length, and it treats a NUL byte as the end of input, so the buffer keeps growing and incr_skip cannot remove the NUL (CWE-770). A remote peer streaming data to an incr_parse consumer can exhaust process memory regardless of max_size.
Written with Claude Haiku 5.5 from the sources below · 2026-11-14
Description from the CNA
JSON::XS versions before 4.05 for Perl allow memory exhaustion by buffering incremental input past max_size after a NUL byte in incr_parse. The parser appends each chunk to its buffer and compares max_size with how far it has progressed, not with the buffer length. It treats a NUL byte as the end of the input, so a NUL within the first max_size bytes keeps it short of the limit. The buffer keeps growing, and incr_skip cannot remove the NUL. A peer streaming data to an incr_parse consumer can exhaust process memory regardless of max_size.
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 | before 4.05 | 4.05 | Patch available | CNA |
- JSON-XS Vendor— Affected before 4.05 Fixed in 4.05 Patch available CNA
Remediation
Upgrade JSON-XS to version 4.05.
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-124536
- 2026-11-14 Alias added: GHSA-jj44-v2qc-wcv3
References
Sources
- CVE-2026-124536 · CVE Program
- CVE-2026-124536 · NVD
- FIRST EPSS
- GHSA-jj44-v2qc-wcv3 · 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