JSON-XSに脆弱性、不正なJSONの処理でメモリを消費し尽くされるおそれ
Summary
JSON-XSの4.05より前の版では、コロンのないオブジェクトを拒否した際にデコード済みのキーが解放されず、メモリが漏れます。失敗したデコードを繰り返されると、プロセスのメモリを使い切るおそれがあり、CVSSは9.1です。修正版の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より前の版では、コロンのないオブジェクトを拒否した際にデコード済みのキーが解放されず、メモリが漏れます。失敗したデコードを繰り返されると、プロセスのメモリを使い切るおそれがあり、CVSSは9.1です。修正版の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-124539 libjson-xs-perl Fix available
- Ubuntu UBUNTU-CVE-2026-124539 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 leak the decoded key of an object rejected for a missing colon in decode_hv.
Unless it is short plain ASCII, a quoted key is decoded into a new scalar. Nothing frees that scalar when the object is rejected for a missing ':' after the key.
A process that keeps running after a failed decode retains one key per rejected document, with its size chosen by the sender. Repeated requests exhaust process memory.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- web metacpan.org
- web nvd.nist.gov
- web github.com