UltraJSON vulnerabilities
3 known CVE vulnerabilities in UltraJSON, translated and rated.
- CVE-2026-145573Low
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.
- 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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

