{"id":"GHSA-fh56-85cw-5pq6","summary":"UltraJSON vulnerable to Out-of-bounds Write","details":"UltraJSON (aka ujson) 1.34 through 5.1.0 has a stack-based buffer overflow in Buffer_AppendIndentUnchecked (called from encode).","aliases":["CVE-2021-45958","PYSEC-2022-25"],"modified":"2024-11-18T23:01:17.240412Z","published":"2022-01-21T23:27:45Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-01-12T19:29:48Z","nvd_published_at":"2022-01-01T00:15:00Z","cwe_ids":["CWE-787"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-45958"},{"type":"WEB","url":"https://github.com/ultrajson/ultrajson/issues/501"},{"type":"WEB","url":"https://github.com/ultrajson/ultrajson/issues/502#issuecomment-1031747284"},{"type":"WEB","url":"https://github.com/ultrajson/ultrajson/pull/504"},{"type":"WEB","url":"https://github.com/ultrajson/ultrajson/pull/519"},{"type":"WEB","url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-fh56-85cw-5pq6"},{"type":"WEB","url":"https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yaml"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/ujson/PYSEC-2022-25.yaml"},{"type":"PACKAGE","url":"https://github.com/ultrajson/ultrajson"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2022/02/msg00023.html"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CN7W3GOXALINKFUUE7ICQIC2EF5HNKUQ"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NAU5N4A7EUK2AMUCOLYDD5ARXAJYZBD2"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/O6JUWQTJLA2CMG4CJN7DCUVSOXLZIIXL"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ULX35TSWLBBIMEH44MUORPXYYRZKEDC6"}],"affected":[{"package":{"name":"ujson","ecosystem":"PyPI","purl":"pkg:pypi/ujson"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.34"},{"fixed":"5.2.0"}]}],"versions":["1.34","1.35","2.0.0","2.0.1","2.0.2","2.0.3","3.0.0","3.1.0","3.2.0","4.0.0","4.0.1","4.0.2","4.1.0","4.2.0","4.3.0","5.0.0","5.1.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-fh56-85cw-5pq6/GHSA-fh56-85cw-5pq6.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"CVSS_V4","score":"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"}]}