JSON-XSにメモリを使い果たされる脆弱性、4.05で修正
Summary
JSON-XSの4.05より前のバージョンには、増分入力を上限を超えてバッファリングし、メモリを使い果たされる脆弱性があります。通信相手が継続的にデータを送り続けると、max_sizeの設定に関係なくプロセスのメモリが枯渇するおそれがあります。修正版の4.05以降へ更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
JSON-XSの4.05より前のバージョンには、増分入力を上限を超えてバッファリングし、メモリを使い果たされる脆弱性があります。通信相手が継続的にデータを送り続けると、max_sizeの設定に関係なくプロセスのメモリが枯渇するおそれがあります。修正版の4.05以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANJSON-XS |
< 4.05→ 4.05 |
4.05 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-124536 libjson-xs-perl Fix available
- Ubuntu UBUNTU-CVE-2026-124536 libjson-xs-perl No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web metacpan.org
- web nvd.nist.gov
- web github.com