Python
CVE-2026-32874
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend JSON with oversized integer to vulnerable endpoint
-
Exploitujson parser processes large integer value
-
ExecutionMemory leak accumulates with each request
-
ImpactService exhausts available memory and crashes
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
|
| Exploitation Conditions | Affects ujson 5.4.0 to 5.11.0. Requires untrusted JSON input passed to ujson.load(), ujson.loads(), or ujson.decode() containing large integers outside [-2^63, 2^64-1] range. Remote unauthenticated attacker can trigger repeated memory leaks causing denial of service. |
| Impact | This vulnerability presents a moderate real-world risk despite its high CVSS base score of 7.5. The CVSS vector (AV:N/AC:L/PR:N/UI:N) indicates remote exploitation with low complexity and no authentication required, making it easily automatable. However, the impact is limited to availability (A:H) with no confidentiality or integrity effects, and successful exploitation requires the attacker to continuously send malicious payloads to accumulate sufficient memory leakage for service degradation. The vulnerability is most concerning for high-throughput API services or data processing pipelines that parse untrusted JSON from external sources. While no EPSS score or KEV listing is provided, the availability of a proof-of-concept demonstration in the advisory and the straightforward exploitation path suggest moderate exploitation likelihood. A patch is immediately available (version 5.12.0), and the narrow version range affected (5.4.0 to 5.11.0) limits the attack surface. This should be prioritized for patching in internet-facing services but may be lower priority for internal systems with rate limiting or request size controls already in place. |
| Exploit ScenarioDerived | An attacker identifies a public API endpoint that accepts JSON input and uses ujson for parsing, such as a data ingestion service or REST API. The attacker crafts malicious JSON payloads containing extremely large integers (e.g., 10 raised to the power of sys.get_int_max_str_digits()) and submits these repeatedly to the service. Each request leaks memory proportional to the string length of the integer, and through sustained requests over time, the attacker exhausts available memory causing the service to slow down, become unresponsive, or crash entirely, achieving denial of service without authentication or complex attack techniques. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 18, 2026
ujson versions 5.4.0 through 5.11.0 contain a memory leak in JSON parsing of large integers outside the range [-2^63, 2^64 - 1], allowing remote denial of service attacks against services processing untrusted JSON input. An attacker can craft malicious JSON payloads with oversized integers to exhaust memory and crash vulnerable applications. A patch is available.
Earlier versions of this analysis (1)
A memory leak vulnerability exists in the ujson JSON parsing library that allows attackers to cause denial of service by submitting JSON payloads containing large integers outside the range [-2^63, 2^64 - 1]. The vulnerability affects ujson versions 5.4.0 through 5.11.0 and can be exploited remotely without authentication against any service parsing untrusted JSON input. The vulnerability was discovered through coverage-guided fuzzing with libFuzzer and AddressSanitizer, and while no active exploitation (KEV) status is indicated, the attack complexity is low (CVSS AC:L) making it readily exploitable.
RemediationAI
Upgrade ujson to version 5.12.0 or later immediately, which contains the fix implemented in commit 4baeb950df780092bd3c89fc702a868e99a3a1d2. The official release is available at https://github.com/ultrajson/ultrajson/releases/tag/5.12.0 and can be installed via pip with 'pip install --upgrade ujson>=5.12.0'. According to the security advisory at https://github.com/ultrajson/ultrajson/security/advisories/GHSA-wgvc-ghv9-3pmm, there are no workarounds available beyond upgrading to an unaffected version. Organizations unable to immediately upgrade should consider implementing application-level controls such as strict input validation to reject JSON payloads containing integers exceeding expected ranges, request rate limiting, and memory consumption monitoring with automatic service restarts to mitigate denial of service impact.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
ujson (ultrajson) is a fast JSON encoder and decoder written in C for Python, distributed via PyPI (pkg:pip/ujson). The vulnerability is classified as CWE-401 (Missing Release of Memory after Effective Lifetime), occurring specifically in the integer parsing routines when handling values outside the signed 64-bit and unsigned 64-bit integer ranges. When ujson.load(), ujson.loads(), or ujson.decode() encounters these large integers, it allocates memory for a string copy of the integer value plus a NULL byte but fails to properly deallocate this memory. The leak occurs regardless of whether the integer is successfully parsed or rejected due to exceeding Python's sys.get_int_max_str_digits() limit, meaning attackers can craft arbitrarily large integers to maximize memory consumption per request without overall payload size constraints.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (https://github.com/ultrajson/ultrajson).
CVSS VectorVendor: https://github.com/ultrajson/ultrajson
Lifecycle Timeline
2DescriptionCVE.org
Summary
ujson 5.4.0 to 5.11.0 inclusive contain an accumulating memory leak in JSON parsing _large_ (outside of the range [-2^63, 2^64 - 1]) integers.
Exploitability
Any service that calls ujson.load()/ujson.loads()/ujson.decode() on untrusted inputs is affected and vulnerable to denial of service attacks.
Details
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.
ujson.loads(str(2 ** 64 - 1))
# No leak
ujson.loads(str(2 ** 64))
# Leaks
ujson.loads(str(10 ** sys.get_int_max_str_digits()))
# Leaks and raises ValueErrorFix
The leak is fixed in ujson 5.12.0 (4baeb950df780092bd3c89fc702a868e99a3a1d2). There are no workarounds beyond upgrading to an unaffected version.
Credits
Discovered by Cameron Criswell/Skevros using Coverage-guided fuzzing (libFuzzer + AddressSanitizer)
Executive ViewAI
A memory leak vulnerability in the ujson JSON parsing library (versions 5.4.0-5.11.0) allows remote attackers to trigger denial of service without authentication. Any organization using affected ujson versions in production services that process untrusted JSON input faces immediate risk of service disruption and potential revenue impact.
Apply vendor patch. If patching cannot be completed immediately, implement rate limiting on JSON submission endpoints, configure WAF rules to reject JSON payloads with unusually large integer values, and monitor for abnormal memory consumption patterns as interim mitigations until patches are deployed.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Affected Products (CPE)CVE.org
Related Vulnerabilities in ujson Memory and Integer Vulnerabilities
View all 2Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
GHSA-wgvc-ghv9-3pmm
NVD
CVE.org
EPSS
VulDB
Exploit-DB