cve.bz

CVE-2026-32874 ultrajson project ultrajson

7.5 highEPSS 0.6%Fix available

High (7.5) in ultrajson project ultrajson. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in ujson 5.12.0.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 48th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-03-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-401 Missing Release of Memory after Effective Lifetime
CWE-772 Missing Release of Resource after Effective Lifetime
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-32874 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-32874?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-32874?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-32874 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
ultrajson_project:ultrajsonfrom 5.4.0 before 5.12.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wgvc-ghv9-3pmmPyPIujson>=5.4.0 <5.12.05.12.0
PYSEC-2026-2291PyPIujson>=5.4.0 <5.12.05.12.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13ujsonno fix listedDEBIAN-CVE-2026-32874
Debian14ujson5.13.0-1DEBIAN-CVE-2026-32874
Ubuntu25.10ujson5.10.0-1ubuntu0.1UBUNTU-CVE-2026-32874
Ubuntu26.04:LTSujson5.11.0-3ubuntu0.1UBUNTU-CVE-2026-32874
Ubuntu26.10ujsonno fix listedUBUNTU-CVE-2026-32874
UbuntuPro:24.04:LTSujson5.9.0-1ubuntu0.1~esm1UBUNTU-CVE-2026-32874
Alpinev3.23, v3.24py3-ujson5.12.0-r0ALPINE-CVE-2026-32874

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This IMPORTANT flaw in UltraJSON can lead to a denial of service in services that process untrusted JSON inputs. Specially crafted JSON containing excessively large integers can trigger a memory leak, consuming system resources. This affects Red Hat OpenStack Platform and Community Projects utilizing `python-ujson`.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat OpenStack Platform 16.2python-ujsonNot affected
Red Hat OpenStack Platform 17.1python-ujsonNot affected
Red Hat OpenStack Platform 18.0python-ujsonNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-32874.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON