Out-of-bounds Write Affecting py3-ujson package, versions <5.2.0-r0


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.1% (43rd 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-ALPINE319-PY3UJSON-6111023
  • published8 Dec 2023
  • disclosed1 Jan 2022

Introduced: 1 Jan 2022

CVE-2021-45958  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Alpine:3.19 py3-ujson to version 5.2.0-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-ujson package and not the py3-ujson package as distributed by Alpine. See How to fix? for Alpine:3.19 relevant fixed versions and status.

UltraJSON (aka ujson) through 5.1.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from encode). Exploitation can, for example, use a large amount of indentation.

CVSS Scores

version 3.1