Vulnerability · Published Dec 31, 2021 · Assigned by mitre

CVE-2021-45958

Medium 5.5

In plain English

A medium-severity security flaw in the py3-ujson package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)1.7%top 23.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20py3-ujson5.2.0-r0ALPINE-CVE-2021-45958
Alpine:v3.21py3-ujson5.2.0-r0ALPINE-CVE-2021-45958
Alpine:v3.22py3-ujson5.2.0-r0ALPINE-CVE-2021-45958
Alpine:v3.23py3-ujson5.2.0-r0ALPINE-CVE-2021-45958
Alpine:v3.24py3-ujson5.2.0-r0ALPINE-CVE-2021-45958
Debian:12ujson5.2.0-1DEBIAN-CVE-2021-45958
Debian:13ujson5.2.0-1DEBIAN-CVE-2021-45958
Debian:14ujson5.2.0-1DEBIAN-CVE-2021-45958
PyPIujson5.1.0PYSEC-2022-25
PyPIujson5.2.0GHSA-fh56-85cw-5pq6
Ubuntu:22.04:LTSpandasno fix listedUBUNTU-CVE-2021-45958
Ubuntu:24.04:LTSpandasno fix listedUBUNTU-CVE-2021-45958
Ubuntu:25.10pandasno fix listedUBUNTU-CVE-2021-45958
Ubuntu:26.04:LTSpandasno fix listedUBUNTU-CVE-2021-45958
Ubuntu:26.10pandasno fix listedUBUNTU-CVE-2021-45958

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References