VDB

CVE-2026-32875

CVE-2026-32875 PUBLISHED CVSS 7.5 HIGH

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.10 through 5.11.0 are vulnerable to buffer overflow or infinite loop through large indent handling. ujson.dumps() crashes the Python interpreter (segmentation fault) when the product of the indent parameter and the nested depth of the input exceeds INT32_MAX. It can also get stuck in an infinite loop if the indent is a large negative number. Both are caused by an integer overflow/underflow whilst calculating how much memory to reserve for indentation. And both can be used to achieve denial of service. To be vulnerable, a service must call ujson.dump()/ujson.dumps()/ujson.encode() whilst giving untrusted users control over the indent parameter and not restrict that indentation to reasonably small non-negative values. A service may also be vulnerable to the infinite loop if it uses a fixed negative indent. An underflow always occurs for any negative indent when the input data is at least one level nested but, for small negative indents, the underflow is usually accidentally rectified by another overflow. 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
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.1.0, < 5.12.0
Red HatRed Hat OpenStack Platform 17.1
chainguardapache-beam-python-3.12-sdk0
Red HatRed Hat OpenStack Platform 16.2
Red HatRed Hat OpenStack Platform 17.1
PyPIujson5.1.0
Red HatRed Hat OpenStack Platform 18.0
ultrajsonultrajson5.1.0
alpinepy3-ujson0
Red HatRed Hat OpenStack Platform 18.0
Red HatRed Hat OpenStack Platform 16.2

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-32875
vulnetix vdb fixes CVE-2026-32875

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-32875/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 ›