CVE-2021-45958
Medium
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.
SeverityMedium
CVSS5.5
Exploit probability—
Product
Ultrajson
PublishedJan 1, 2022
First seenJan 1, 2022
How to fix
Update
- ultrajson_project ultrajson5.2.0 or later
- ujson5.2.0, 5.1.0 or later
Vendor advisories
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQ/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ULX35TSWLBBIMEH44MUORPXYYRZKEDC6/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O6JUWQTJLA2CMG4CJN7DCUVSOXLZIIXL/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ultrajson_project ultrajson | v < 5.2.0 | 5.2.0 |
| debian debian_linux | 9.0 | — |
| fedoraproject fedora | 35, 36, 37 | — |
| ujsonPyPI | 1.34 ≤ v < 5.2.0, 4.0.2 ≤ v < 5.1.0 | 5.2.0, 5.1.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.