CVE-2021-45958
mediumpriority · track · 23EPSS 0.017 · 77 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (8)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-fh56-85cw-5pq6UltraJSON vulnerable to Out-of-bounds Write2022-01-21ghsa · osvUS
UltraJSON (aka ujson) 1.34 through 5.1.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from encode).
- PYSEC-2022-252022-01-01vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (35)
External citations — patches, advisories, analysis.
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009cnnvd
- https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yamlcnnvd
- https://github.com/ultrajson/ultrajson/issues/501cnnvd
- https://github.com/ultrajson/ultrajson/issues/502#issuecomment-1031747284cnnvd
- https://github.com/ultrajson/ultrajson/pull/504cnnvd
- https://lists.debian.org/debian-lts-announce/2022/02/msg00023.htmlcnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQ/cnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan