VDB

CVE-2021-45958

CVE-2021-45958 PUBLISHED CVSS 5.5 MEDIUM

UltraJSON vulnerable to Out-of-bounds Write

Reported by mitre · Published December 31, 2021

ujson is fixed in 5.2.0 and 5.1.0 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ujsonPyPI5.2.0, 5.1.0
py3-ujsonAlpine5.2.0-r0
ultrajsonultrajson_project5.2.0

Risk scores

CVSS 3.1
5.5
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
n/an/an/a
alpinepy3-ujson0
PyPIujson1.34
n/an/a*

Timeline

  • Dec 31, 2021 CVE Published
  • Jan 1, 2022 EPSS Score (30 in total, the first dated here)
  • Nov 21, 2024 CVE Updated
  • Mar 9, 2026 Security Advisory (2 in total, the first dated here)
  • Jul 15, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-45958
vulnetix vdb fixes CVE-2021-45958

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-45958/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›