# CVE-2026-44660: UltraJSON: Memory Leak in ujson.dump() on Write Failure

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-12T22:25:11.000Z
- Modified: 2026-09-10T03:51:05.194Z
- Also known as: GHSA-c38f-wx89-p2xg, PYSEC-2026-2293
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- ultrajson ultrajson: < 5.12.1
- ujson (PyPI): before 5.12.1
- ultrajson_project ultrajson: before 5.12.1

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/ultrajson/ultrajson/security/advisories/GHSA-c38f-wx89-p2xg> (exploit, fix, mitigation, patch, vendor-advisory, web)
- <https://github.com/ultrajson/ultrajson/commit/82af1d0ac01d09aa40c887b460d44b9d9f4bccd9> (fix, patch, web)
- <https://github.com/ultrajson/ultrajson/releases/tag/5.12.1> (advisory, product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-44660> (advisory)
- <https://github.com/ultrajson/ultrajson> (package)

## Sources

- CVE List: [CVE-2026-44660](https://www.cve.org/CVERecord?id=CVE-2026-44660), CVE Terms of Use, modified 2026-05-30
- GitHub Advisory Database: [GHSA-c38f-wx89-p2xg](https://github.com/advisories/GHSA-c38f-wx89-p2xg), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-44660](https://nvd.nist.gov/vuln/detail/CVE-2026-44660), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2293](https://osv.dev/vulnerability/PYSEC-2026-2293), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-44660 · Whole record: https://cve.day/CVE-2026-44660.json · Rebuilt by cve.day 2026-11-25T22:59:22.685Z
