CVE-2021-45958
MEDIUM5.5EPSS 0.29%ujson - security update
Published: 1/21/2022Modified: 4/28/2026
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.
Affected packages (4)
- Debian/ujsonfrom 0
- Debian/ujsonfrom 0, < 1.35-1+deb9u1
- PyPI/ujson>= 1.34, < 5.2.0
- PyPI/ujson>= 4.0.2, < 5.1.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | MEDIUM5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
References (16)
- ADVISORYhttps://github.com/advisories/GHSA-fh56-85cw-5pq6
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-45958
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-45958
- PATCHhttps://github.com/ultrajson/ultrajson
- WEBhttps://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009
- WEBhttps://github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yaml
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/ujson/PYSEC-2022-25.yaml
- WEBhttps://github.com/ultrajson/ultrajson/issues/501
- WEBhttps://github.com/ultrajson/ultrajson/issues/502#issuecomment-1031747284
- WEBhttps://github.com/ultrajson/ultrajson/pull/504
- WEBhttps://github.com/ultrajson/ultrajson/pull/519
- WEBhttps://lists.debian.org/debian-lts-announce/2022/02/msg00023.html
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQ
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/O6JUWQTJLA2CMG4CJN7DCUVSOXLZIIXL
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/ULX35TSWLBBIMEH44MUORPXYYRZKEDC6