UltraJSON 4.2.0 before 6.0.0 Memory Leak via ujson.dumps() default Handler
- CVE-2026-145573
- EUVD-2026-145705
Summary
UltraJSON versions 4.2.0 up to but not including 6.0.0 contain a memory leak in the Object_beginTypeContext() routine. When a caller-supplied default handler returns objects that cannot be serialized, the library fails to release those returned objects, so one object is leaked per failed call. An attacker able to repeatedly trigger encoding of such values can gradually exhaust process memory. The record rates the issue at CVSS 3.7 and states it is not on the CISA known exploited vulnerabilities list. Engineers running affected UltraJSON versions that use ujson.dumps() with a default handler should evaluate upgrading to 6.0.0 or later.
AI summary · verify against the vendor advisory
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.
Text from the CVE.org record.
Recommendation
ultrajson
- If you run a version from 4.2.0 to before 6.0.0update to 6.0.0 or laterMajor version change: expect breaking changes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
ultrajson
Affected versions Fixed in from 4.2.0 to before 6.0.0 6.0.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.