CVE-2026-32874UltraJSON has a Memory Leak parsing large integers allows DoS
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.
What to do
Fixed builds are available from Alpine, Debian, PyPI, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | ujson | Fix pending | UBUNTU-CVE-2026-32874 | |
| Ubuntu 26.04 | pandas | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | ujson | Fixed | 5.11.0-3ubuntu0.1 | UBUNTU-CVE-2026-32874 |
| Ubuntu 25.10 | pandas | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | ujson | Fixed | 5.10.0-1ubuntu0.1 | UBUNTU-CVE-2026-32874 |
| Ubuntu 24.04 | pandas | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | ujson | Fix pending | 5.9.0-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-32874 |
| Ubuntu 22.04 | collada2gltf | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | pandas | Not affected vulnerable_code_not_present | ||
| Debian 14 | ujson | Fixed | 5.13.0-1 | DEBIAN-CVE-2026-32874 |
| Debian 13 | ujson | Fix pending | DEBIAN-CVE-2026-32874 | |
| Debian 12 | ujson | Fix pending | DEBIAN-CVE-2026-32874 | |
| Alpine Linux 3.24 | py3-ujson | Fixed | 5.12.0-r0 | ALPINE-CVE-2026-32874 |
| Alpine Linux 3.23 | py3-ujson | Fixed | 5.12.0-r0 | ALPINE-CVE-2026-32874 |
| PyPI library | ujson | Fixed | 5.12.0 | PYSEC-2026-2291 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- ultrajson: affected: >= 5.4.0, < 5.12.0
References
- https://github.com/ultrajson/ultrajson/security/advisories/GHSA-wgvc-ghv9-3pmm
- https://github.com/ultrajson/ultrajson/commit/4baeb950df780092bd3c89fc702a868e99a3a1d2
- https://github.com/ultrajson/ultrajson/releases/tag/5.12.0
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.