JSON::XS versions before 4.05 for Perl leak the decoded key of an object rejected for a missing colon in decode_hv
- State
- Published
- Severity
- 9.1 Critical
- Published
- Nov 14, 2026
- Updated
- Nov 17, 2026
- Reserved
- Nov 8, 2026
Description
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.
| Product | Versions |
|---|---|
| JSON-XS | before 4.05 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 9.1 Critical | CISA-ADP |
Weaknesses
- CWE-401 Missing Release of Memory after Effective Lifetime
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.