Medium severity5.5NVD Advisory· Published Jan 1, 2022· Updated Jun 17, 2026
CVE-2021-45958
CVE-2021-45958
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
ujsonPyPI | >= 1.34, < 5.2.0 | 5.2.0 |
Affected products
12cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*+ 2 more
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
- UltraJSON/UltraJSONdescription
- ghsa-coords6 versionspkg:pypi/ujsonpkg:rpm/opensuse/python-ujson&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/python-ujson&distro=openSUSE%20Tumbleweedpkg:rpm/suse/python-ujson&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4pkg:rpm/suse/python-ujson&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP4pkg:rpm/suse/python-ujson&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3
>= 1.34, < 5.2.0+ 5 more
- (no CPE)range: >= 1.34, < 5.2.0
- (no CPE)range: < 1.35-150100.3.8.1
- (no CPE)range: < 5.10.0-1.5
- (no CPE)range: < 1.35-150100.3.8.1
- (no CPE)range: < 1.35-150100.3.8.1
- (no CPE)range: < 1.35-150100.3.8.1
Patches
Vulnerability mechanics
References
18- github.com/ultrajson/ultrajson/issues/502nvdIssue TrackingPatchThird Party AdvisoryWEB
- github.com/ultrajson/ultrajson/pull/504nvdPatchThird Party AdvisoryWEB
- bugs.chromium.org/p/oss-fuzz/issues/detailnvdExploitIssue TrackingThird Party AdvisoryWEB
- github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yamlnvdExploitThird Party AdvisoryWEB
- github.com/ultrajson/ultrajson/issues/501nvdExploitIssue TrackingThird Party AdvisoryWEB
- github.com/advisories/GHSA-fh56-85cw-5pq6ghsaADVISORY
- lists.debian.org/debian-lts-announce/2022/02/msg00023.htmlnvdMailing ListThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2021-45958ghsaADVISORY
- github.com/pypa/advisory-database/tree/main/vulns/ujson/PYSEC-2022-25.yamlghsaWEB
- github.com/ultrajson/ultrajson/pull/519ghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2ghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/O6JUWQTJLA2CMG4CJN7DCUVSOXLZIIXLghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/ULX35TSWLBBIMEH44MUORPXYYRZKEDC6ghsaWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQ/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O6JUWQTJLA2CMG4CJN7DCUVSOXLZIIXL/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ULX35TSWLBBIMEH44MUORPXYYRZKEDC6/nvd
News mentions
0No linked articles in our index yet.