JSON-XSに脆弱性、細工したJSONでサービス停止のおそれ
Summary
JSON-XSの4.05より前のバージョンには、allow_tags有効時にタグ付き値が入れ子になると、Cのスタックを使い切って異常終了する脆弱性があります。影響するのは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.05より前のバージョンには、allow_tags有効時にタグ付き値が入れ子になると、Cのスタックを使い切って異常終了する脆弱性があります。影響するのは4.05より前の版で、修正版は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-124540 libjson-xs-perl Fix available
- Ubuntu UBUNTU-CVE-2026-124540 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 stack exhaustion via nested tagged values under allow_tags in decode_tag.
With allow_tags, "(" starts a tagged value. Its tag and value are decoded recursively, and each can start another tagged value. Unlike arrays and objects, this nesting is not counted against max_depth.
A run of "(" bytes exhausts the C stack and triggers an uncatchable segmentation fault regardless of max_depth.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web metacpan.org
- web nvd.nist.gov
- web github.com