CVE-2026-145573
LowCVSS 3.7Exploitation Probability (EPSS)
Low risk44th percentile - higher than 44% of all known CVEs
Summary
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.
Risk Assessment
An attacker can gradually exhaust process memory, leading to application crash or performance degradation.
Recommendation
Update UltraJSON to version 6.0.0 or later. Ensure default handlers do not return non-serializable objects.
Other vulnerabilities in UltraJSON
See all- CVE-2026-32875High
UltraJSON versions 5.10 through 5.11.0 are vulnerable to buffer overflow or infinite loop via large indent handling. ujson.dumps() crashes the Python interpreter (segmentation fault) when the product of the indent parameter and nested depth exceeds INT32_MAX, or may get stuck in an infinite loop if indent is a large negative number. Both are caused by integer overflow/underflow during memory calculation for indentation and can lead to denial of service.
- CVE-2026-32874High
UltraJSON versions 5.4.0 through 5.11.0 have a memory leak when parsing large integers outside the range [-2^63, 2^64-1]. The leak copies the string form of the integer plus a NULL byte, potentially leading to memory exhaustion and DoS attacks.
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

