Out-of-bounds Write Affecting ujson package, versions <1.33-1ubuntu0.1~esm2


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.67% (77th 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-UBUNTU1604-UJSON-2330316
  • published12 Jul 2025
  • 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 Ubuntu:16.04 ujson to version 1.33-1ubuntu0.1~esm2 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ujson package and not the ujson package as distributed by Ubuntu. See How to fix? for Ubuntu:16.04 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 Base Scores

version 3.1