Double Free Affecting ujson package, versions [,5.4.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.14% (51st 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 Learn

Learn about Double Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-UJSON-2940619
  • published4 Jul 2022
  • disclosed4 Jul 2022
  • creditunknown

Introduced: 4 Jul 2022

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

How to fix?

Upgrade ujson to version 5.4.0 or higher.

Overview

ujson is an Ultra fast JSON encoder and decoder for Python

Affected versions of this package are vulnerable to Double Free on string decoding, if realloc fails.

NOTE: According to the maintainer, this issue is "impossible to trigger from Python".

CVSS Scores

version 3.1