CVE-2026-44660
HIGH 8.7CVSS 4.0UltraJSON has a 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.
- Published
- 27 May 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-401
- Also known as
- GHSA-c38f-wx89-p2xgPYSEC-2026-2293
- Sources
- NVDJSONOSV GHSA-c38f-wx89-p2xgJSONOSV PYSEC-2026-2293JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ultrajson_project | ultrajsoncpe:2.3:a:ultrajson_project:ultrajson:*:*:*:*:*:python:*:* |
< 5.12.1 | 5.12.1 |
| OSV | PyPI | ujson | < 5.12.1 | 5.12.1 |
References
- https://github.com/ultrajson/ultrajson/commit/82af1d0ac01d09aa40c887b460d44b9d9f4bccd9 · Patch, WEB, FIX
- https://github.com/ultrajson/ultrajson/releases/tag/5.12.1 · Product, Release Notes, WEB, ADVISORY
- https://github.com/ultrajson/ultrajson/security/advisories/GHSA-c38f-wx89-p2xg · Exploit, Mitigation, Patch, Vendor Advisory, WEB, FIX
- https://nvd.nist.gov/vuln/detail/CVE-2026-44660 · ADVISORY
- https://github.com/ultrajson/ultrajson · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 27 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 May 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 12 May 2026)