Memory leak in ultrajson - CVE-2026-32874
Published: April 27, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to missing release of memory after effective lifetime in the JSON parser when parsing large integer values in untrusted JSON input. A remote attacker can send a specially crafted JSON payload containing large integers to cause a denial of service.
The issue is triggered for integers outside the range [-2^63, 2^64 - 1], and the leak occurs even if parsing fails because the integer exceeds sys.get_int_max_str_digits().
Affected software
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
Fedora
Ubuntu
ujson (Ubuntu package)
python-ujson
How to mitigate CVE-2026-32874
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - update to 5.3.1 Patch 5
ujson (Ubuntu package) - addressed in versions 5.1.0-1ubuntu0.1~esm2, 5.9.0-1ubuntu0.1~esm1, 5.10.0-1ubuntu0.1, 5.11.0-3ubuntu0.1
python-ujson - update to 5.8.0-2.el9