JSON-XSにリモートから異常終了させられる脆弱性
Summary
JSON-XSの4.0_00以降4.05より前のバージョンには、バッファー長が壊れる脆弱性があります。特定の入力を受け取ると、インクリメンタル解析を使うプログラムが強制終了することがあります。修正版の4.05で対応できるため、該当するバージョンを使っている場合は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.0_00以降4.05より前のバージョンには、バッファー長が壊れる脆弱性があります。特定の入力を受け取ると、インクリメンタル解析を使うプログラムが強制終了することがあります。修正版の4.05で対応できるため、該当するバージョンを使っている場合は4.05以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| CPANJSON-XS |
≥ 4.0_00, < 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-129113 libjson-xs-perl Fix available
- Ubuntu UBUNTU-CVE-2026-129113 libjson-xs-perl No fixed version in this record
Original description The description as published by the source.
JSON::XS versions from 4.0_00 before 4.05 for Perl corrupt the incremental buffer length by chopping past its end in incr_skip after a top-level number.
The incremental parser scans any run of digits, signs, dots and exponent markers as one number, but the decoder stops at the end of a valid number, so the parser keeps an offset into bytes it has not decoded. It then empties the buffer without clearing those bytes, and a later incr_parse call without new input reads them again and moves the offset past the end of the buffer. incr_skip, the documented recovery after an error, removes that many bytes and the buffer length wraps.
A peer sending input such as "1-2" to an incr_parse consumer can make the next read of incr_text exit the process through perl's uncatchable out-of-memory path.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web metacpan.org
- web nvd.nist.gov
- web github.com