Read the docs

Memory leak in JSON::XS for Perl on rejected object keys

Priority LOW 22CWE-401Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Denial of service
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from CNA. Impact type from CWE-401.

Summary

JSON::XS versions before 4.05 for Perl leak memory when a decoded object key is rejected for a missing colon in decode_hv. Unless the key is short plain ASCII, it is stored in a new scalar that is never freed after the object is rejected. A long-running process that keeps decoding untrusted input retains one key per rejected document, sized by the sender, so repeated requests can exhaust process memory. This is tracked as CWE-401.

Written with Claude Haiku 5.5 from the sources below · 2026-11-14

Description from the CNA

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.

Why it matters now

EPSS 0.00187 8th percentileScored 2026-11-16
Fix Fixed JSON-XS: 4.05

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—JSON-XSbefore 4.054.05Patch availableCNA
  • JSON-XS Vendor— Affected before 4.05 Fixed in 4.05 Patch available CNA

Remediation

Upgrade JSON-XS to version 4.05 or later, which fixes the flaw. The sources list no fixed version for JSON-XS other than 4.05.

Written with Claude Haiku 5.5 from the sources below · 2026-11-14

  • Fix · CNA JSON-XS Fixed in 4.05

Timeline

  1. 2026-11-14 Threatist record created from CVE-2026-124539
  2. 2026-11-14 Alias added: GHSA-pmcq-254w-hhrg

References

Sources