
CVE catalog
CVE-2026-32874
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 ra
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.50% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ujson | sid | 5.13.0-1 | fixed |
| Debian | ujson | forky | 5.13.0-1 | fixed |
| Debian | ujson | trixie | 5.10.0-1 | vulnerable |
| Debian | ujson | bookworm | 5.7.0-1 | vulnerable |
| Pip | ujson | Not reported | 5.12.0 | fixed |
| Cpe | ujson | Not reported | Not reported | vulnerable |
| Cpe | ujson | Not reported | 5.9.0-1ubuntu0.1~esm1 | fixed |
| Cpe | python3-ujson | Not reported | 5.9.0-1ubuntu0.1~esm1 | fixed |
| Ubuntu | ujson | pro | 5.8.0-1 | vulnerable |
| Ubuntu | ujson | pro | 5.8.0-1build1 | vulnerable |
| Ubuntu | ujson | pro | 5.9.0-1 | vulnerable |
| Ubuntu | ujson | pro | 5.9.0-1build1 | vulnerable |
| Ubuntu | ujson | pro | 5.9.0-1ubuntu0.1~esm1 | fixed |
| Ubuntu | ujson | 25.10 | 5.10.0-1build2 | vulnerable |
| Ubuntu | ujson | 25.10 | 5.10.0-1ubuntu0.1 | fixed |
| Ubuntu | ujson | 26.04 | 5.10.0-1build2 | vulnerable |
| Ubuntu | ujson | 26.04 | 5.10.0-1build3 | vulnerable |
| Ubuntu | ujson | 26.04 | 5.11.0-3 | vulnerable |
| Ubuntu | ujson | 26.04 | 5.11.0-3build1 | vulnerable |
| Ubuntu | ujson | 26.04 | 5.11.0-3ubuntu0.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ujson | source | sid | 5.13.0-1 | not yet assigned | Not reported | [1131486] |
| Debian | ujson | source | forky | 5.13.0-1 | not yet assigned | Not reported | [1131486] |
| Debian | ujson | source | trixie | (unfixed) | not yet assigned | Not reported | [1131486] |
| Debian | ujson | source | bookworm | (unfixed) | not yet assigned | Not reported | [1131486] |
| Pip | ujson | pip | Not reported | 5.12.0 | Not reported | Not reported | Not reported |
| Cpe | ujson | cpe | Not reported | 5.9.0-1ubuntu0.1~esm1 | Not reported | Not reported | Not reported |
| Cpe | python3-ujson | cpe | Not reported | 5.9.0-1ubuntu0.1~esm1 | Not reported | Not reported | Not reported |
| Ubuntu | ujson | deb | pro | 5.9.0-1ubuntu0.1~esm1 | Not reported | USN-8219-1 | Not reported |
| Ubuntu | ujson | deb | 25.10 | 5.10.0-1ubuntu0.1 | Not reported | USN-8219-1 | Not reported |
| Ubuntu | ujson | deb | 26.04 | 5.11.0-3ubuntu0.1 | Not reported | USN-8219-1 | Not reported |
Notes
[trixie] ujson: Minor issue [bookworm] ujson: Minor issue; DoS
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-ujson]Affected
Source package: [ujson]
Details (2)
5.7.0-1· amd64 · bookwormAffected
nvd · ujson · debian · bookworm; nvd · ujson · debian · 12
5.7.0-1· arm64 · bookwormAffected
nvd · ujson · debian · bookworm; nvd · ujson · debian · 12
[Debian 13 (Trixie)]
- [python3-ujson]Affected
Source package: [ujson]
Details (2)
5.10.0-1+b4· amd64 · trixieAffected
nvd · ujson · debian · 13
5.10.0-1+b4· arm64 · trixieAffected
nvd · ujson · debian · 13
Observed:
References
- [https://github.com/advisories/GHSA-wgvc-ghv9-3pmm]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-32874]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-32874]
- [https://osv.dev/vulnerability/USN-8219-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-32874]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32874.json]
- [https://ubuntu.com/security/notices/USN-8219-1]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [Ubuntu Security Notices (USN)]