CVE-2026-32874
published high CVSS 3.1 · 7.5UltraJSON has a Memory Leak parsing large integers allows DoS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ultrajson | — | ultrajson>= 5.4.0, < 5.12.0 | Affected | Not stated | GitHub_M |
| Red Hat | — | python-ujsonRed Hat OpenStack Platform 16.2 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | python-ujsonRed Hat OpenStack Platform 17.1 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | python-ujsonRed Hat OpenStack Platform 18.0 | Unaffected | Not required | redhat-SADP |
| Alpine Linux | edge | py3-ujson | Fixed | 5.12.0-r0 | Package fix record |
| Ubuntu | noble | python3-ujson | Advisory build | 5.9.0-1ubuntu0.1~esm1 | USN-8219-1 |
| Alpine Linux | v3.23 | py3-ujson | Fixed | 5.12.0-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-ujson | Fixed | 5.12.0-r0 | Package fix record |
Show 5 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | ujson | Advisory build | 5.9.0-1ubuntu0.1~esm1 | USN-8219-1 |
| Ubuntu | questing | python3-ujson | Advisory build | 5.10.0-1ubuntu0.1 | USN-8219-1 |
| Ubuntu | questing | ujson | Advisory build | 5.10.0-1ubuntu0.1 | USN-8219-1 |
| Ubuntu | resolute | python3-ujson | Advisory build | 5.11.0-3ubuntu0.1 | USN-8219-1 |
| Ubuntu | resolute | ujson | Advisory build | 5.11.0-3ubuntu0.1 | USN-8219-1 |
Description
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.
A flaw was found in UltraJSON, a fast JSON encoder and decoder. A remote attacker can exploit this vulnerability by providing specially crafted JSON input that contains extremely large integers. When UltraJSON attempts to parse these inputs, it leads to an accumulating memory leak. This excessive memory consumption can ultimately result in a denial of service (DoS) for any service that processes untrusted JSON inputs using UltraJSON.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ultrajson | ultrajson | >= 5.4.0, < 5.12.0 (affected) | GitHub_M · cna |
| Red Hat | Red Hat OpenStack Platform 16.2 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenStack Platform 17.1 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat OpenStack Platform 18.0 | Default: unaffected | redhat-SADP · adp |
Weaknesses
2- CWE-401 CWE-401: Missing Release of Memory after Effective Lifetime
- CWE-772 Missing Release of Resource after Effective Lifetime
References
6- https://access.redhat.com/security/cve/CVE-2026-32874
- RHBZ#2449411 https://bugzilla.redhat.com/show_bug.cgi?id=2449411
- https://github.com/ultrajson/ultrajson/commit/4baeb950df780092bd3c89fc702a868e99a3a1d2
- https://github.com/ultrajson/ultrajson/releases/tag/5.12.0
- https://github.com/ultrajson/ultrajson/security/advisories/GHSA-wgvc-ghv9-3pmm
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-32874.json
Provider assertions
3GitHub_M · cna
UltraJSON has a Memory Leak parsing large integers allows DoS
redhat-SADP · adp
UltraJSON: UltraJSON: Denial of Service due to memory leak when parsing large integers
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 421d41ec7cce90fb79b850b5254718b750627c55d1f3ce4618d2f0ed6b781152
- Ingested
- 23 Sep 2026, 09:10:18 UTC
- Source record
- Official CVE record