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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | py3-ujson | 5.2.0-r0 | ALPINE-CVE-2021-45958 |
| Alpine:v3.21 | py3-ujson | 5.2.0-r0 | ALPINE-CVE-2021-45958 |
| Alpine:v3.22 | py3-ujson | 5.2.0-r0 | ALPINE-CVE-2021-45958 |
| Alpine:v3.23 | py3-ujson | 5.2.0-r0 | ALPINE-CVE-2021-45958 |
| Alpine:v3.24 | py3-ujson | 5.2.0-r0 | ALPINE-CVE-2021-45958 |
| Debian:12 | ujson | 5.2.0-1 | DEBIAN-CVE-2021-45958 |
| Debian:13 | ujson | 5.2.0-1 | DEBIAN-CVE-2021-45958 |
| Debian:14 | ujson | 5.2.0-1 | DEBIAN-CVE-2021-45958 |
| PyPI | ujson | 5.1.0 | PYSEC-2022-25 |
| PyPI | ujson | 5.2.0 | GHSA-fh56-85cw-5pq6 |
| Ubuntu:22.04:LTS | pandas | no fix listed | UBUNTU-CVE-2021-45958 |
| Ubuntu:24.04:LTS | pandas | no fix listed | UBUNTU-CVE-2021-45958 |
| Ubuntu:25.10 | pandas | no fix listed | UBUNTU-CVE-2021-45958 |
| Ubuntu:26.04:LTS | pandas | no fix listed | UBUNTU-CVE-2021-45958 |
| Ubuntu:26.10 | pandas | no fix listed | UBUNTU-CVE-2021-45958 |
Affected products (as reported)
References
- https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yaml x_refsource_MISC
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009 x_refsource_MISC
- https://github.com/ultrajson/ultrajson/issues/502#issuecomment-1031747284 x_refsource_MISC
- https://github.com/ultrajson/ultrajson/issues/501 x_refsource_MISC
- https://github.com/ultrajson/ultrajson/pull/504 x_refsource_CONFIRM
- [debian-lts-announce] 20220226 [SECURITY] [DLA 2929-1] ujson security update mailing-list, x_refsource_MLIST
- FEDORA-2022-dbf6e00ba8 vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-569b6b45e2 vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-d1452fd421 vendor-advisory, x_refsource_FEDORA
- FEDORA-2022-33e816bc37 vendor-advisory, x_refsource_FEDORA