Vulnerability · Published May 27, 2026 · Assigned by GitHub_M

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

High 8.7

In plain English

A high-severity memory leak in ultrajson from ultrajson. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 37% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.7High
Exploit odds (30 days)0.4%top 63.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ujsonno fix listedDEBIAN-CVE-2026-44660
Debian:13ujsonno fix listedDEBIAN-CVE-2026-44660
Debian:14ujson5.13.0-1DEBIAN-CVE-2026-44660
PyPIujson5.12.1PYSEC-2026-2293
PyPIujson5.12.1GHSA-c38f-wx89-p2xg
Ubuntu:22.04:LTScollada2gltfno fix listedUBUNTU-CVE-2026-44660
Ubuntu:22.04:LTSpandasno fix listedUBUNTU-CVE-2026-44660
Ubuntu:24.04:LTSpandasno fix listedUBUNTU-CVE-2026-44660
Ubuntu:25.10pandasno fix listedUBUNTU-CVE-2026-44660
Ubuntu:26.04:LTSpandasno fix listedUBUNTU-CVE-2026-44660
Ubuntu:26.10pandasno fix listedUBUNTU-CVE-2026-44660
Ubuntu:25.10ujsonno fix listedUBUNTU-CVE-2026-44660
Ubuntu:26.04:LTSujsonno fix listedUBUNTU-CVE-2026-44660
Ubuntu:26.10ujsonno fix listedUBUNTU-CVE-2026-44660

Affected products (as reported)

VendorProductVersions
ultrajson ultrajson < 5.12.1

Weakness: CWE-401 · 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

References