CVE-2026-145573
Received Received - Intake

Memory Leak in UltraJSON Due to Unreleased Objects

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

Publication date: 2026-12-05

Last updated on: 2026-12-05

Assigner: VulnCheck

Description

UltraJSON 4.2.0 before 6.0.0 contains a memory leak in Object_beginTypeContext() that fails to release objects returned by a caller-supplied default handler. Attackers who can repeatedly trigger encoding of values whose default handler returns non-serializable objects leak one object per failed call, gradually exhausting process memory.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-05
Last Modified
2026-12-05
Generated
2026-12-06
AI Q&A
2026-12-05
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
ultrajson ultrajson From 4.2.0 (inc) to 6.0.0 (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

UltraJSON versions before 6.0.0 have a memory leak in the Object_beginTypeContext() function. When a caller-supplied default handler returns non-serializable objects, the function fails to release them, causing memory exhaustion over repeated encoding attempts.

Detection Guidance

To detect this vulnerability, check if your system uses UltraJSON versions 4.2.0 through 5.9.0. Run commands like 'pip show ujson' or 'pip list | grep ujson' to verify the installed version. If the version is below 6.0.0, the system is vulnerable.

Impact Analysis

An attacker could exploit this to gradually consume all available memory in a process by repeatedly triggering encoding of values with malicious default handlers, leading to denial of service or system crashes.

Compliance Impact

This vulnerability primarily impacts system availability due to memory exhaustion, which could lead to service disruptions or crashes. For compliance standards like GDPR or HIPAA, such disruptions may violate availability requirements or cause data processing delays. However, the vulnerability does not directly affect confidentiality or integrity of data, which are critical for these regulations.

Mitigation Strategies

Upgrade UltraJSON to version 6.0.0 or later to address the memory leak issue in Object_beginTypeContext().

Review and restrict access to encoding functions that use custom default handlers to prevent abuse.

Monitor system memory usage for gradual exhaustion patterns that may indicate exploitation attempts.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-145573. 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...