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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ujson | PyPI | 5.2.0, 5.1.0 |
| py3-ujson | Alpine | 5.2.0-r0 |
| ultrajson | ultrajson_project | 5.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
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| alpine | py3-ujson | 0 |
| PyPI | ujson | 1.34 |
| n/a | n/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
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- [debian-lts-announce] 20220226 [SECURITY] [DLA 2929-1] ujson security update mailing-listx_refsource_MLIST
- FEDORA-2022-dbf6e00ba8 vendor-advisoryx_refsource_FEDORA
- FEDORA-2022-569b6b45e2 vendor-advisoryx_refsource_FEDORA
- FEDORA-2022-d1452fd421 vendor-advisoryx_refsource_FEDORA
- FEDORA-2022-33e816bc37 vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2021-45958 advisory
- https://github.com/advisories/GHSA-fh56-85cw-5pq6 advisory
- https://github.com/ultrajson/ultrajson/pull/519 patch
- https://github.com/pypa/advisory-database/tree/main/vulns/ujson/PYSEC-2022-25.yaml advisory
- https://github.com/ultrajson/ultrajson url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2 url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O6JUWQTJLA2CMG4CJN7DCUVSOXLZIIXL url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULX35TSWLBBIMEH44MUORPXYYRZKEDC6 url