CVE-2021-45958
5.5medium
UltraJSON vulnerable to Out-of-bounds Write
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 1.67% (higher than 77% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-fh56-85cw-5pq6PYSEC-2022-25
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| ujson (PyPI) | from 1.34 before 5.2.0, from 4.0.2 before 5.1.0 | GitHub Advisory Database, PyPA Advisory Database |
| ultrajson_project ultrajson | before 5.2.0 | NVD |
| debian debian_linux | 9.0 | NVD |
| fedoraproject fedora | 35, 36, 37 | NVD |
All scores
| GitHub | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
UltraJSON (aka ujson) 1.34 through 5.1.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from encode).
NVD (es)
UltraJSON (también conocido como ujson) a través de 5.1.0 tiene un desbordamiento de búfer basado en pila en Buffer_AppendIndentUnchecked (llamado desde encode). La explotación puede, por ejemplo, utilizar una gran cantidad de sangría
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-45958 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-fh56-85cw-5pq6 changed 2024-11-18 | CC-BY-4.0 |
| NVD | CVE-2021-45958 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2022-25 changed 2023-11-08 | CC-BY-4.0 |