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

Read the record on cve.org

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.

ProductVersions
JSON-XSbefore 4.05 Affected

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.