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
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
8 packages: 2 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libjson-xs-perl(Debian 12) | = 4.030-2; = 4.030-3; = 4.040-1; = 4.040-1~deb12u1 +3 more | No fix listed | No fix yet |
| debian/libjson-xs-perl(Debian 13) | = 4.030-2; = 4.030-3; = 4.040-1; = 4.040-1~deb12u1 +3 more | No fix listed | No fix yet |
| ubuntu/libjson-xs-perl(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/libjson-xs-perl(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/libjson-xs-perl(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/libjson-xs-perl(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| cpan JSON-XS | < 4.05 | 4.05 | Fixed |
| debian/libjson-xs-perl(Debian 14) | < 4.050-1; = 4.030-2; = 4.030-3; = 4.040-1 +2 more | 4.050-1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cpan JSON-XS | < 4.05 | 4.05 |
| ubuntu/libjson-xs-perl(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/libjson-xs-perl(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/libjson-xs-perl(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/libjson-xs-perl(Ubuntu:26.10) | All versions | No fix listed |
| debian/libjson-xs-perl(Debian:12) | All versions | No fix listed |
| debian/libjson-xs-perl(Debian:12) | = 4.030-2 | No fix listed |
| debian/libjson-xs-perl(Debian:12) | = 4.030-3 | No fix listed |
| debian/libjson-xs-perl(Debian:12) | = 4.040-1 | No fix listed |
| debian/libjson-xs-perl(Debian:12) | = 4.040-1~deb12u1 | No fix listed |
| debian/libjson-xs-perl(Debian:12) | = 4.040-1~deb13u1 | No fix listed |
| debian/libjson-xs-perl(Debian:12) | = 4.050-1 | No fix listed |
| debian/libjson-xs-perl(Debian:13) | All versions | No fix listed |
| debian/libjson-xs-perl(Debian:13) | = 4.030-2 | No fix listed |
| debian/libjson-xs-perl(Debian:13) | = 4.030-3 | No fix listed |
| debian/libjson-xs-perl(Debian:13) | = 4.040-1 | No fix listed |
| debian/libjson-xs-perl(Debian:13) | = 4.040-1~deb12u1 | No fix listed |
| debian/libjson-xs-perl(Debian:13) | = 4.040-1~deb13u1 | No fix listed |
| debian/libjson-xs-perl(Debian:13) | = 4.050-1 | No fix listed |
| debian/libjson-xs-perl(Debian:14) | < 4.050-1 | 4.050-1 |
| debian/libjson-xs-perl(Debian:14) | = 4.030-2 | No fix listed |
| debian/libjson-xs-perl(Debian:14) | = 4.030-3 | No fix listed |
| debian/libjson-xs-perl(Debian:14) | = 4.040-1 | No fix listed |
| debian/libjson-xs-perl(Debian:14) | = 4.040-1~deb12u1 | No fix listed |
| debian/libjson-xs-perl(Debian:14) | = 4.040-1~deb13u1 | No fix listed |
References
- metacpan.org release-notes
- Debian Security Tracker CVE-2026-124536 vendor-advisory
- bugs.debian.org issue-tracking
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2026-125920 third-party-advisory