PYSEC-2022-25
Dashboard / Vulnerabilities / PYSEC-2022-25
PYSEC-2022-25
Published: 1 Jan 2022Last Modified: 8 Nov 2023
Aliases:
Summary:
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.
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
Affected packages
Package
Name: ujson
Purl: pkg:pypi/ujson
Affected ranges
Type: ECOSYSTEM
Events:
Introduced- 4.0.2
Fixed -5.1.0
Affected versions
4.0.2
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
