CVE-2026-32874
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ujson | PyPI | 5.12.0 |
| apache-beam-python-3.12-sdk | Chainguard | 2.71.0-r1 |
| py3-ujson | Alpine | 5.12.0-r0 |
| ultrajson | ultrajson_project | 5.12.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ultrajson | ultrajson | >= 5.4.0, < 5.12.0 |
| PyPI | ujson | 5.4.0 |
| Red Hat | Red Hat OpenStack Platform 18.0 | |
| Red Hat | Red Hat OpenStack Platform 17.1 | |
| Red Hat | Red Hat OpenStack Platform 16.2 | |
| chainguard | apache-beam-python-3.12-sdk | 0 |
| alpine | py3-ujson | 0 |
| Red Hat | Red Hat OpenStack Platform 17.1 | |
| Red Hat | Red Hat OpenStack Platform 18.0 | |
| Red Hat | Red Hat OpenStack Platform 16.2 | |
| ultrajson | ultrajson | 5.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
References
- https://github.com/ultrajson/ultrajson/security/advisories/GHSA-wgvc-ghv9-3pmm x_refsource_CONFIRM
- https://github.com/ultrajson/ultrajson/commit/4baeb950df780092bd3c89fc702a868e99a3a1d2 x_refsource_MISC
- https://github.com/ultrajson/ultrajson/releases/tag/5.12.0 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-32874 advisory
- https://github.com/advisories/GHSA-wgvc-ghv9-3pmm advisory
- https://github.com/ultrajson/ultrajson url
- https://access.redhat.com/security/cve/CVE-2026-32874 vdb
- RHBZ#2449411 issue
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32874.json url