# CVE-2026-124536: 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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-11-14T11:51:22.977Z
- Modified: 2026-11-24T19:10:01.980Z
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## Description

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.

(As written by CVE List.)

## Affected

- JSON-XS: before 4.05

## References

- <https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes> (release-notes)

## Sources

- CVE List: [CVE-2026-124536](https://www.cve.org/CVERecord?id=CVE-2026-124536), CVE Terms of Use, modified 2026-11-17
- NVD: [CVE-2026-124536](https://nvd.nist.gov/vuln/detail/CVE-2026-124536), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-124536 · Whole record: https://cve.day/CVE-2026-124536.json · Rebuilt by cve.day 2026-11-25T22:59:50.803Z
