Live threats

All CVEs / Ultrajson Project

CVE-2022-31117Ultrajson Project Ultrajson

Medium 5.9 No auth needed

Priority
51
CVSS 3.1
5.9
EPSS
1.5%
probability of exploitation in 30 days · percentile 75
Auth required
No
Published
Jul 5, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-415
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ultrajson.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI ujson < 5.4.0 5.4.0 pip install "ujson>=5.4.0"
PyPI ujson < 5.4.0 5.4.0 pip install "ujson>=5.4.0"

Per OSV / GitHub Advisories (GHSA-fm67-cv37-96ff, PYSEC-2026-1056). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ultrajson_projectultrajson< 5.4.0
fedoraprojectfedora35
fedoraprojectfedora36

Official sources

References

Links published by the sources. Open them with care.