{"id":"CVE-2026-44660","published":"2026-05-27T20:42:59Z","modified":"2026-05-30T01:49:35Z","title":"UltraJSON: Memory Leak in ujson.dump() on Write Failure","vendor":"ultrajson","product":"ultrajson","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00421,"percentile":0.37289,"provenance":"source"},"cwes":[{"id":"CWE-401","name":"Missing Release of Memory after Effective Lifetime"}],"references":[{"url":"https://github.com/ultrajson/ultrajson/security/advisories/GHSA-c38f-wx89-p2xg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ultrajson/ultrajson/commit/82af1d0ac01d09aa40c887b460d44b9d9f4bccd9","tags":["x_refsource_MISC"]},{"url":"https://github.com/ultrajson/ultrajson/releases/tag/5.12.1","tags":["x_refsource_MISC"]}],"priority":{"score":13.5,"factors":[{"name":"EPSS percentile","points":7.46},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"ultrajson","affectedVersions":[{"vendor":"ultrajson","product":"ultrajson","versions":["< 5.12.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-30T01:49:01.498929Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"ujson","vulnerableRanges":["<5.12.1"],"patched":["5.12.1"],"from":["GHSA-c38f-wx89-p2xg","PYSEC-2026-2293"],"provenance":"source"}],"summary":{"text":"The flaw is a memory leak in the ujson.dump() function of the UltraJSON Python JSON encoder/decoder (product ultrajson, the library's Python bindings); when a write to a file-like object raises an exception, the serialized JSON string is not released, so each failed write leaks memory equal to the full payload size. An attacker with network access and no authentication or user interaction can repeatedly trigger failed writes, exhausting the availability of the affected application, provided it calls ujson.dump() against a file-like object that can fail.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:28Z"},"euvd":{"id":"EUVD-2026-32663","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-31117","published":"2022-07-05","fixed":"5.4.0","kev":false},{"cve":"CVE-2026-32874","published":"2026-03-20","fixed":"5.12.0","kev":false,"link":{"from":"CVE-2026-32874","to":"CVE-2026-44660","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ujson","fromFixed":"5.12.0","toFixed":"5.12.1","daysApart":68}]}},{"cve":"CVE-2026-32875","published":"2026-03-20","fixed":"5.12.0","kev":false},{"cve":"CVE-2026-44660","published":"2026-05-27","fixed":"5.12.1","kev":false},{"cve":"CVE-2026-54911","published":"2026-06-22","fixed":"5.13.0","kev":false,"link":{"from":"CVE-2026-44660","to":"CVE-2026-54911","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ujson","fromFixed":"5.12.1","toFixed":"5.13.0","daysApart":26}]}}],"package":"PyPI:ujson"}}