CVE-2021-45958: UltraJSON - Buffer Overflow
- Cve: CVE-2021-45958
- Name: UltraJSON - Buffer Overflow
- 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.
- Impact: Successful exploitation can lead to denial of service or remote code execution.
- Remediation: Update to the latest version of UltraJSON (ujson).
- Vulnerability type: buffer_overflow
- Vulnerability impact: denial_of_service, remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Epss score: 0.01667
- Epss percentile: 0.77361
- Assignee: [email protected]
- Published at: 2022-01-01T00:15:08Z
- Age in days: 1788
- Modified at: 2026-06-17T04:14:19Z
- Patch available: yes
- Public exploits total: 3
- References total: 10
- Products total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-45958
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-787 | Out-of-bounds Write |
Public exploits
Same in every row:
- Source: nvd
- Added date: 2022-01-01
| Url |
|---|
| https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009 |
| https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yaml |
| https://github.com/ultrajson/ultrajson/issues/501 |
References
Same in every row:
- Source: nvd
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| ultrajson_project:ultrajson | < 5.2.0 | /v1/products/ultrajson_project/ultrajson |
| debian:debian_linux | = 9.0 | /v1/products/debian/debian_linux |
| fedoraproject:fedora | = 37, = 36, = 35 | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| ultrajson/ultrajson | fix, issues, package, pull | yes | /v1/repositories/ultrajson/ultrajson |
Index
- Repositories: 67
- Repositories high signal: 29
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 3
- Public exploit first date: 2022-01-01
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports