PT-2020-6061 · Go · Gjson
Published
2020-12-15
·
Updated
2021-06-23
·
CVE-2020-35380
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
GJSON versions prior to 1.6.4
Description
The issue is related to insufficient input validation in the GJSON library, which can be exploited by attackers to cause a denial of service via crafted JSON. Maliciously crafted JSON objects can cause an out-of-bounds panic due to improper bounds checking. If the library is used to parse user input, this may be used as a denial of service vector.
Recommendations
For versions prior to 1.6.4, update to version 1.6.4 or later to resolve the issue. As a temporary workaround, consider restricting the use of the GJSON library when parsing user input to minimize the risk of exploitation. Avoid using the library with untrusted or unvalidated JSON data until the issue is resolved.
Exploit
Fix
Resource Exhaustion
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Gjson