{"id":"CVE-2021-45958","published":"2021-12-31T23:52:45Z","modified":"2024-08-04T04:54:31Z","title":"UltraJSON (aka ujson) through 5.1.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01667,"percentile":0.77327,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yaml","tags":["x_refsource_MISC"]},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009","tags":["x_refsource_MISC"]},{"url":"https://github.com/ultrajson/ultrajson/issues/502#issuecomment-1031747284","tags":["x_refsource_MISC"]},{"url":"https://github.com/ultrajson/ultrajson/issues/501","tags":["x_refsource_MISC"]},{"url":"https://github.com/ultrajson/ultrajson/pull/504","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00023.html","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQ/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ULX35TSWLBBIMEH44MUORPXYYRZKEDC6/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O6JUWQTJLA2CMG4CJN7DCUVSOXLZIIXL/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":15.47}]},"affected":[{"ecosystem":"PyPI","package":"ujson","vulnerableRanges":[">=1.34, <5.2.0",">=4.0.2, <5.1.0"],"patched":["5.2.0","5.1.0"],"from":["GHSA-fh56-85cw-5pq6","PYSEC-2022-25"],"provenance":"source"}],"summary":{"text":"UltraJSON (aka ujson) through version 5.1.0 contains a stack-based buffer overflow in its Buffer_AppendIndentUnchecked routine, which is reached from the encode function. An attacker can trigger the overflow by supplying input that produces a large amount of indentation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:08Z"},"euvd":{"id":"EUVD-2022-0348","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-45958","published":"2021-12-31","fixed":"5.2.0","kev":false},{"cve":"CVE-2022-31116","published":"2022-07-05","fixed":"5.4.0","kev":false,"link":{"from":"CVE-2021-45958","to":"CVE-2022-31116","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ujson","fromFixed":"5.2.0","toFixed":"5.4.0","daysApart":186}]}},{"cve":"CVE-2022-31117","published":"2022-07-05","fixed":"5.4.0","kev":false,"link":{"from":"CVE-2021-45958","to":"CVE-2022-31117","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:ujson","fromFixed":"5.2.0","toFixed":"5.4.0","daysApart":186}]}},{"cve":"CVE-2026-32874","published":"2026-03-20","fixed":"5.12.0","kev":false}],"package":"PyPI:ujson"}}