VDB

CVE-2026-32874

CVE-2026-32874 PUBLISHED CVSS 7.5 HIGH

UltraJSON has a Memory Leak parsing large integers allows DoS

Reported by github_m · Published March 20, 2026

ujson is fixed in 5.12.0 (PyPI)

UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. Versions 5.4.0 through 5.11.0 contain an accumulating memory leak in JSON parsing large (outside of the range [-2^63, 2^64 - 1]) integers. The leaked memory is a copy of the string form of the integer plus an additional NULL byte. The leak occurs irrespective of whether the integer parses successfully or is rejected due to having more than sys.get_int_max_str_digits() digits, meaning that any sized leak per malicious JSON can be achieved provided that there is no limit on the overall size of the payload. Any service that calls ujson.load()/ujson.loads()/ujson.decode() on untrusted inputs is affected and vulnerable to denial of service attacks. This issue has been fixed in version 5.12.0.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ujsonPyPI5.12.0
apache-beam-python-3.12-sdkChainguard2.71.0-r1
py3-ujsonAlpine5.12.0-r0
ultrajsonultrajson_project5.12.0

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
ultrajsonultrajson>= 5.4.0, < 5.12.0
PyPIujson5.4.0
Red HatRed Hat OpenStack Platform 18.0
Red HatRed Hat OpenStack Platform 17.1
Red HatRed Hat OpenStack Platform 16.2
chainguardapache-beam-python-3.12-sdk0
alpinepy3-ujson0
Red HatRed Hat OpenStack Platform 17.1
Red HatRed Hat OpenStack Platform 18.0
Red HatRed Hat OpenStack Platform 16.2
ultrajsonultrajson5.4.0

Timeline

  • Mar 18, 2026 CVE Published
  • Mar 20, 2026 EPSS Score (30 in total, the first dated here)
  • Mar 22, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Mar 22, 2026 PoC Published (3 in total, the first dated here)
  • Mar 23, 2026 Security Advisory
  • Jul 15, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-32874
vulnetix vdb fixes CVE-2026-32874

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-32874/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›