CVE catalog

CVE-2026-32874

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 ra

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.50% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianujsonsid5.13.0-1fixed
Debianujsonforky5.13.0-1fixed
Debianujsontrixie5.10.0-1vulnerable
Debianujsonbookworm5.7.0-1vulnerable
PipujsonNot reported5.12.0fixed
CpeujsonNot reportedNot reportedvulnerable
CpeujsonNot reported5.9.0-1ubuntu0.1~esm1fixed
Cpepython3-ujsonNot reported5.9.0-1ubuntu0.1~esm1fixed
Ubuntuujsonpro5.8.0-1vulnerable
Ubuntuujsonpro5.8.0-1build1vulnerable
Ubuntuujsonpro5.9.0-1vulnerable
Ubuntuujsonpro5.9.0-1build1vulnerable
Ubuntuujsonpro5.9.0-1ubuntu0.1~esm1fixed
Ubuntuujson25.105.10.0-1build2vulnerable
Ubuntuujson25.105.10.0-1ubuntu0.1fixed
Ubuntuujson26.045.10.0-1build2vulnerable
Ubuntuujson26.045.10.0-1build3vulnerable
Ubuntuujson26.045.11.0-3vulnerable
Ubuntuujson26.045.11.0-3build1vulnerable
Ubuntuujson26.045.11.0-3ubuntu0.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianujsonsourcesid5.13.0-1not yet assignedNot reported[1131486]
Debianujsonsourceforky5.13.0-1not yet assignedNot reported[1131486]
Debianujsonsourcetrixie(unfixed)not yet assignedNot reported[1131486]
Debianujsonsourcebookworm(unfixed)not yet assignedNot reported[1131486]
PipujsonpipNot reported5.12.0Not reportedNot reportedNot reported
CpeujsoncpeNot reported5.9.0-1ubuntu0.1~esm1Not reportedNot reportedNot reported
Cpepython3-ujsoncpeNot reported5.9.0-1ubuntu0.1~esm1Not reportedNot reportedNot reported
Ubuntuujsondebpro5.9.0-1ubuntu0.1~esm1Not reportedUSN-8219-1Not reported
Ubuntuujsondeb25.105.10.0-1ubuntu0.1Not reportedUSN-8219-1Not reported
Ubuntuujsondeb26.045.11.0-3ubuntu0.1Not reportedUSN-8219-1Not reported

[Debian bug #1131486]

Notes

[trixie] ujson: Minor issue [bookworm] ujson: Minor issue; DoS

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-ujson]Affected

    Source package: [ujson]

    Details (2)
    • 5.7.0-1 · amd64 · bookworm

      Affected

      nvd · ujson · debian · bookworm; nvd · ujson · debian · 12

    • 5.7.0-1 · arm64 · bookworm

      Affected

      nvd · ujson · debian · bookworm; nvd · ujson · debian · 12

[Debian 13 (Trixie)]

  • [python3-ujson]Affected

    Source package: [ujson]

    Details (2)
    • 5.10.0-1+b4 · amd64 · trixie

      Affected

      nvd · ujson · debian · 13

    • 5.10.0-1+b4 · arm64 · trixie

      Affected

      nvd · ujson · debian · 13

Observed:

References