CVE-2026-124539
Received Received - Intake

Memory Leak in JSON::XS Perl Module

Vulnerability report for CVE-2026-124539, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-14

Last updated on: 2026-11-14

Assigner: CPANSec

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-14
Last Modified
2026-11-14
Generated
2026-11-15
AI Q&A
2026-11-14
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
perl json_xs to 4.05 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-401 The product does not sufficiently track and release allocated memory after it has been used, making the memory unavailable for reallocation and reuse.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability affects the Perl module JSON::XS before version 4.05. When decoding JSON objects, if a key is quoted and not followed by a colon, the module leaks memory by creating a new scalar for the key without freeing it. Repeated failed decodes can exhaust system memory over time.

Detection Guidance

This vulnerability is specific to Perl's JSON::XS library versions before 4.05 and involves memory leaks during JSON parsing. Detection requires checking the installed version of JSON::XS on systems running Perl applications that process JSON data. Use commands like 'perl -MJSON::XS -e "print $JSON::XS::VERSION"' to verify the version. If the version is below 4.05, the system is vulnerable.

Impact Analysis

If you use a vulnerable version of JSON::XS in a long-running Perl process, an attacker could send specially crafted JSON data to cause memory exhaustion. This may lead to crashes, degraded performance, or denial of service for the affected application.

Compliance Impact

This vulnerability does not directly affect compliance with GDPR, HIPAA, or similar standards as described. It is a memory leak issue in a Perl module that could lead to denial-of-service through resource exhaustion, but no data exposure or privacy violation is mentioned.

Mitigation Strategies

Update JSON::XS to version 4.05 or later for Perl to address the memory leak issue in object decoding.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-124539. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...