CVEfocus › CVE database › CVE-2026-32874

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

CVSS 7.5 HighEPSS 0.8% (higher than 53% of CVEs)Published 2026-03-20Updated 2026-07-15Assigner: GitHub_M

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.

CWE-401CWE-772

What to do

Fixed builds are available from Alpine, Debian, PyPI, Ubuntu: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
4Fix pending
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10ujsonFix pendingUBUNTU-CVE-2026-32874
Ubuntu 26.04pandasNot affected
vulnerable_code_not_present
Ubuntu 26.04ujsonFixed5.11.0-3ubuntu0.1UBUNTU-CVE-2026-32874
Ubuntu 25.10pandasNot affected
vulnerable_code_not_present
Ubuntu 25.10ujsonFixed5.10.0-1ubuntu0.1UBUNTU-CVE-2026-32874
Ubuntu 24.04pandasNot affected
vulnerable_code_not_present
Ubuntu 24.04ujsonFix pending5.9.0-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-32874
Ubuntu 22.04collada2gltfNot affected
vulnerable_code_not_present
Ubuntu 22.04pandasNot affected
vulnerable_code_not_present
Debian 14ujsonFixed5.13.0-1DEBIAN-CVE-2026-32874
Debian 13ujsonFix pendingDEBIAN-CVE-2026-32874
Debian 12ujsonFix pendingDEBIAN-CVE-2026-32874
Alpine Linux 3.24py3-ujsonFixed5.12.0-r0ALPINE-CVE-2026-32874
Alpine Linux 3.23py3-ujsonFixed5.12.0-r0ALPINE-CVE-2026-32874
PyPI libraryujsonFixed5.12.0PYSEC-2026-2291

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.