PyPA Advisory Database
PYSEC-2022-25
Details
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
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | ujson | From 4.0.2 before 5.1.0 (fixed in 5.1.0) |
References
- 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