Buffer overflow in Ultrajson Project
CVE-2021-45958
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.017, 77.1th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Ultrajson Project
- Debian Linux — versions 9.0
- Fedoraproject Fedora — versions 35, 36, 37
Weakness classification (CWE)
References
- github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yaml (Exploit, Third Party Advisory)
- bugs.chromium.org/p/oss-fuzz/issues/detail (Exploit, Third Party Advisory, Issue Tracking)
- github.com/ultrajson/ultrajson/issues/502 (Patch, Third Party Advisory, Issue Tracking)
- github.com/ultrajson/ultrajson/issues/501 (Exploit, Third Party Advisory, Issue Tracking)
- github.com/ultrajson/ultrajson/pull/504 (Patch, Third Party Advisory)
- [debian-lts-announce] 20220226 [SECURITY] [DLA 2929-1] ujson security update (mailing-list, Mailing List, Third Party Advisory)
- FEDORA-2022-dbf6e00ba8 (vendor-advisory)
- FEDORA-2022-569b6b45e2 (vendor-advisory)
- FEDORA-2022-d1452fd421 (vendor-advisory)
- FEDORA-2022-33e816bc37 (vendor-advisory)