CVE-2021-45958
MEDIUM
Published Jan 1, 20224y ago · Modified Jun 17, 20262w ago
5.5 CVSS 3.1
Published Jan 1, 2022 4y ago
Last Modified Jun 17, 2026 2w ago
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.
CVSS Details
Base Score
Exploitability
Impact
Vector string
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H Attack Vector Local
Attack Complexity Low
Privileges Required None
User Interaction Required
Scope Unchanged
Confidentiality None
Integrity None
Availability High
Threat Intelligence
No active exploitation signals — not in CISA KEV and no EPSS score yet.
Exploit & Patch Status
Public Exploit Known
Patch Available
Weaknesses 1
CWE-787 Out-of-bounds Write Memory Safety
Affected Products 5
| Vendor | Product | Version | Range |
|---|---|---|---|
| ultrajson_project | ultrajson | * | <5.2.0 |
| debian | debian_linux | 9.0 | any |
| fedoraproject | fedora | 35 | any |
| fedoraproject | fedora | 36 | any |
| fedoraproject | fedora | 37 | any |
References 10
- bugs.chromium.org https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009
- github.com https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yaml
- github.com https://github.com/ultrajson/ultrajson/issues/501
- github.com https://github.com/ultrajson/ultrajson/issues/502#issuecomment-1031747284
- github.com https://github.com/ultrajson/ultrajson/pull/504
- lists.debian.org https://lists.debian.org/debian-lts-announce/2022/02/msg00023.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQ/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O6JUWQTJLA2CMG4CJN7DCUVSOXLZIIXL/
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ULX35TSWLBBIMEH44MUORPXYYRZKEDC6/
Remediation
- github.com https://github.com/ultrajson/ultrajson/issues/502#issuecomment-1031747284
- github.com https://github.com/ultrajson/ultrajson/pull/504