CVE catalog

CVE-2022-31117

ujson: CVE-2022-31117

[CVE catalog]

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

UltraJSON is a fast JSON encoder and decoder written in pure C with bindings for Python 3.7+. In versions prior to 5.4.0 an error occurring while reallocating a buffer for string decoding can cause the buffer to get freed twice. Due to how UltraJSON uses the internal decoder, this double free is impossible to trigger from Python. This issue has been resolved in version 5.4.0 and all users should upgrade to UltraJSON 5.4.0. There are no known workarounds for this issue.

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-1fixed
Debianujsonbookworm5.7.0-1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianujsonsourcesid5.4.0-1not yet assignedNot reportedNot reported
Debianujsonsourceforky5.4.0-1not yet assignedNot reportedNot reported
Debianujsonsourcetrixie5.4.0-1not yet assignedNot reportedNot reported
Debianujsonsourcebookworm5.4.0-1not yet assignedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [ujson]

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

      Fixed · Fixed: 5.4.0-1

      dsa · ujson · debian · bookworm

    • 5.7.0-1 · arm64 · bookworm

      Fixed · Fixed: 5.4.0-1

      dsa · ujson · debian · bookworm

Observed:

References