Skip to main content

Python CVE-2026-32874

HIGH
Memory Leak (CWE-401)
2026-03-18 https://github.com/ultrajson/ultrajson GHSA-wgvc-ghv9-3pmm
7.5
CVSS 3.1 · Vendor: https://github.com/ultrajson/ultrajson
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send JSON with oversized integer to vulnerable endpoint
  2. Exploit
    ujson parser processes large integer value
  3. Execution
    Memory leak accumulates with each request
  4. Impact
    Service 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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)
v1 Mar 18, 2026 - 13:15 CVSS 7.5

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

pypi ujson fix: 5.12.0

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

Vendor (https://github.com/ultrajson/ultrajson) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Red Hat 7.5 HIGH

Primary rating from Vendor (https://github.com/ultrajson/ultrajson).

CVSS VectorVendor: https://github.com/ultrajson/ultrajson

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch released
Mar 18, 2026 - 13:15 nvd
Patch available
CVE Published
Mar 18, 2026 - 13:01 nvd
HIGH 7.5

DescriptionCVE.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.

python
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 ValueError
Fix

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 85% exploitable
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:pip/ujson

Related Vulnerabilities in ujson Memory and Integer Vulnerabilities

View all 2

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy