UltraJSON
UltraJSON: Memory Leak in ujson.dump() on Write Failure
UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Prior to 5.12.1, when ujson.dump() writes to a file-like object and the write operation raises an exception, the serialized JSON string object is not decremented, leaking memory. Each failed write operation leaks the full size of the serialized payload. This vulnerability is fixed in 5.12.1.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.7high · scored by CNA · CWE-401
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
ultrajson ultrajson
- < 5.12.1
Fixed in 5.12.1
Mitigation
Upgrade ultrajson to 5.12.1 or later.
References
- Vendor advisory github.com/ultrajson/ultrajson/security/adviso…
- Patch github.com/ultrajson/ultrajson/commit/82af1d0a…
- Release notes github.com/ultrajson/ultrajson/releases/tag/5.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.