cve.bz

CVE-2026-32875 ultrajson project ultrajson: Year 2038 problem, Y2K38, Y2038, Epochalypse

7.5 highExploit referenceEPSS 0.5%Fix available

High (7.5) in ultrajson project ultrajson. EPSS 0.5% 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.10 through 5.11.0 are vulnerable to buffer overflow or infinite loop through large indent handling. ujson.dumps() crashes the Python interpreter (segmentation fault) when the product of the indent parameter and the nested depth of the input exceeds INT32_MAX. It can also get stuck in an infinite loop if the indent is a large negative number. Both are caused by an integer overflow/underflow whilst calculating how much memory to reserve for indentation. And both can be used to achieve denial of service. To be vulnerable, a service must call ujson.dump()/ujson.dumps()/ujson.encode() whilst giving untrusted users control over the indent parameter and not restrict that indentation to reasonably small non-negative values. A service may also be vulnerable to the infinite loop if it uses a fixed negative indent. An underflow always occurs for any negative indent when the input data is at least one level nested but, for small negative indents, the underflow is usually accidentally rectified by another overflow. 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.5% (unchanged from 0.5% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 46th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-03-25. 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-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
CWE-787 Out-of-bounds Write
CWE-835 Loop with Unreachable Exit Condition (Infinite Loop)
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-32875 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-32875?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-32875?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-32875 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.1.0 before 5.12.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c8rr-9gxc-jprvPyPIujson>=5.1.0 <5.12.05.12.0
PYSEC-2026-2292PyPIujson>=5.1.0 <5.12.05.12.0

Linux distributions

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

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 is an IMPORTANT denial of service flaw in UltraJSON, affecting Red Hat products that utilize `python-ujson`, including various Community Projects and Red Hat OpenStack Platform. The vulnerability arises when applications process untrusted input that controls the `indent` parameter in JSON serialization functions, potentially leading to a Python interpreter crash or an infinite loop. Exploitation requires a service to explicitly expose the `indent` parameter to untrusted users without proper validation.

Red Hat's mitigation

To mitigate this issue, applications utilizing `python-ujson` should ensure that the `indent` parameter in `ujson.dump()`, `ujson.dumps()`, or `ujson.encode()` functions is not controlled by untrusted input. If untrusted input must influence indentation, restrict the `indent` value to reasonably small, non-negative integers. Review application code to identify and validate all uses of the `indent` parameter with external data.

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

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

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

References

Check your stackJSON