Skip to content

CVE-2026-32874 UltraJSON has a Memory Leak parsing large integers allows DoS

HighCVSS 7.5 EPSS 0.56%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

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.

Upgrade path

12 packages: 7 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
debian/ujson(Debian 12) = 5.7.0-1; = 5.8.0-1; = 5.9.0-1; = 5.10.0-1 +5 more No fix listed No fix yet
debian/ujson(Debian 13) = 5.10.0-1; = 5.11.0-1; = 5.11.0-2; = 5.11.0-3 +2 more No fix listed No fix yet
ubuntu/ujson(Ubuntu 26.10) All versions No fix listed No fix yet
alpine/py3-ujson(Alpine v3.23) < 5.12.0-r0 5.12.0-r0 Fixed
alpine/py3-ujson(Alpine v3.24) < 5.12.0-r0 5.12.0-r0 Fixed
debian/ujson(Debian 14) < 5.13.0-1; = 5.10.0-1; = 5.11.0-1; = 5.11.0-2 +1 more 5.13.0-1 Fixed
pypi ujson(PyPI) = 5.4.0; = 5.5.0; = 5.6.0; = 5.7.0 +6 more 5.12.0 Fixed
ubuntu/ujson(Ubuntu 24.04) < 5.9.0-1ubuntu0.1~esm1 5.9.0-1ubuntu0.1~esm1 Fixed
ubuntu/ujson(Ubuntu 26.04) < 5.11.0-3ubuntu0.1 5.11.0-3ubuntu0.1 Fixed
ultrajson project ultrajson >= 5.4.0, < 5.12.0 5.12.0 Fixed
redhat openstack = 16.2; = 17.1; = 18.0 No fix listed Versions listed
ultrajson = >= 5.4.0, < 5.12.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi ujson(PyPI) >= 5.4.0, < 5.12.0 5.12.0
pypi ujson(PyPI) = 5.10.0 No fix listed
pypi ujson(PyPI) = 5.11.0 No fix listed
pypi ujson(PyPI) = 5.4.0 No fix listed
pypi ujson(PyPI) = 5.5.0 No fix listed
pypi ujson(PyPI) = 5.6.0 No fix listed
pypi ujson(PyPI) = 5.7.0 No fix listed
pypi ujson(PyPI) = 5.8.0 No fix listed
pypi ujson(PyPI) = 5.9.0 No fix listed
ultrajson = >= 5.4.0, < 5.12.0 No fix listed
redhat openstack = 16.2 No fix listed
redhat openstack = 17.1 No fix listed
redhat openstack = 18.0 No fix listed
pypi ujson(PyPI) >= 5.4.0, <= 5.11.0 No fix listed
debian/ujson(Debian:12) All versions No fix listed
debian/ujson(Debian:12) = 5.10.0-1 No fix listed
debian/ujson(Debian:12) = 5.11.0-1 No fix listed
debian/ujson(Debian:12) = 5.11.0-2 No fix listed
debian/ujson(Debian:12) = 5.11.0-3 No fix listed
debian/ujson(Debian:12) = 5.13.0-1 No fix listed
debian/ujson(Debian:12) = 5.7.0-1 No fix listed
debian/ujson(Debian:12) = 5.8.0-1 No fix listed
debian/ujson(Debian:12) = 5.9.0-1 No fix listed
debian/ujson(Debian:13) All versions No fix listed
debian/ujson(Debian:13) = 5.10.0-1 No fix listed
Show 15 more
ProductAffected versionsFixed in
debian/ujson(Debian:13) = 5.11.0-1 No fix listed
debian/ujson(Debian:13) = 5.11.0-2 No fix listed
debian/ujson(Debian:13) = 5.11.0-3 No fix listed
debian/ujson(Debian:13) = 5.13.0-1 No fix listed
debian/ujson(Debian:14) < 5.13.0-1 5.13.0-1
debian/ujson(Debian:14) = 5.10.0-1 No fix listed
debian/ujson(Debian:14) = 5.11.0-1 No fix listed
debian/ujson(Debian:14) = 5.11.0-2 No fix listed
debian/ujson(Debian:14) = 5.11.0-3 No fix listed
alpine/py3-ujson(Alpine:v3.23) < 5.12.0-r0 5.12.0-r0
alpine/py3-ujson(Alpine:v3.24) < 5.12.0-r0 5.12.0-r0
ubuntu/ujson(Ubuntu:24.04) < 5.9.0-1ubuntu0.1~esm1 5.9.0-1ubuntu0.1~esm1
ubuntu/ujson(Ubuntu:26.04) < 5.11.0-3ubuntu0.1 5.11.0-3ubuntu0.1
ubuntu/ujson(Ubuntu:26.10) All versions No fix listed
ultrajson project ultrajson >= 5.4.0, < 5.12.0 5.12.0

References