PyPI/ujson CVE-2021-45958: unknown, EPSS 1.55%
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.
Action: Upgrade ujson to 5.1.0 or later.
pip install ujson==5.1.0Affected
| introduced | fixed | last affected |
|---|---|---|
| 4.0.2 | 5.1.0 | - |
Fixed versions
| 5.1.0 |
Sources
- osv: PYSEC-2022-25
- https://github.com/google/oss-fuzz-vulns/blob/main/vulns/ujson/OSV-2021-955.yaml
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36009
- https://github.com/ultrajson/ultrajson/issues/501
- https://github.com/ultrajson/ultrajson/issues/502#issuecomment-1031747284
- https://github.com/advisories/GHSA-fh56-85cw-5pq6
CVE-2021-45958 · published · modified · JSON