CVE-2020-35380 Denial of service in GJSON
Attackers can cause a denial of service in applications using the GJSON library by submitting crafted JSON input.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-35380?
CVE-2020-35380 is a high-severity denial of service vulnerability in n/a, published on 15 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
GJSON before 1.6.4 allows attackers to cause a denial of service via crafted JSON.
Which versions are affected by CVE-2020-35380?
3 open source packages ship an affected version, including github.com/tidwall/gjson. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/tidwall/gjson Go | All versions | 1.6.4 |
github.com/tidwall/gjson Go | All versions | 1.6.4 |
github.com/tidwall/gjson Go | All versions | 1.6.4 |
Products include Gjson Project Gjson.
How do I fix CVE-2020-35380?
Upgrade github.com/tidwall/gjson to 1.6.4 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2020-35380 being exploited?
There is no known exploitation of CVE-2020-35380 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2020-35380, GHSA-w942-gw6m-p62c, GO-2021-0059, UBUNTU-CVE-2020-35380.