PT-2020-6061 · Go · Gjson

Published

2020-12-15

·

Updated

2021-06-23

·

CVE-2020-35380

CVSS v3.1

7.5

High

VectorAV: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 👾

Weakness Enumeration

Related Identifiers

BDU:2021-02866
CVE-2020-35380
GHSA-W942-GW6M-P62C
GO-2021-0059

Affected Products

Gjson