CPANSA-JSON-XS-2026-124536: JSON-XS vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-11-14T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-11-14T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | 7.5 | Severity | |
| Original language | Language | en | |
| Also referred to | |||
Vulnerability 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.
Vulnerabilities
CVE-2026-124536
Vulnerability DescriptionJSON::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.
| Weakness | CWE-770 : Allocation of Resources Without Limits or Throttling |
|---|
Product status
Known affected
| Product | Score | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| JSON-XS less than 4.05 |
|
Fixed
- JSON-XS greater than or equal 4.05
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-JSON-XS-2026-124536 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-json-xs-2026-124536.json - https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes external
https://metacpan.org/release/MLEHMANN/JSON-XS-4.05/changes - CVE-2026-124536 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-124536
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Sat Nov 14 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/