Double Free The advisory has been revoked - it doesn't affect any version of package python-ujson  (opens in a new tab)


Threat Intelligence

EPSS
1.87% (81st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL10-PYTHONUJSON-9842422
  • published28 Apr 2025
  • disclosed2 Jul 2022

Introduced: 2 Jul 2022

CVE-2022-31117  (opens in a new tab)
CWE-415  (opens in a new tab)

Amendment

The Red Hat security team deemed this advisory irrelevant for RHEL:10.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python-ujson package and not the python-ujson package as distributed by RHEL.

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.