CVE-2020-36066 github.com/tidwall/gjson is vulnerable to Denial of service

High 7.5 Published Updated

Attackers can cause a remote denial of service in the GJSON library by sending crafted JSON data.

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-36066?

CVE-2020-36066 is a high-severity denial of service vulnerability in n/a, published on 5 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

GJSON <1.6.5 allows attackers to cause a denial of service (remote) via crafted JSON.

Which versions are affected by CVE-2020-36066?

3 open source packages ship an affected version, including github.com/tidwall/gjson. It affects 1 product.

PackageAffectedFixed in
github.com/tidwall/gjson GoAll versions1.6.5
github.com/tidwall/gjson GoAll versions1.6.5
github.com/tidwall/gjson GoAll versions1.6.5

Products include Gjson Project Gjson.

How do I fix CVE-2020-36066?

Upgrade github.com/tidwall/gjson to 1.6.5 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-36066 being exploited?

There is no known exploitation of CVE-2020-36066 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2020-36066, GHSA-wjm3-fq3r-5x46, GO-2022-0957, UBUNTU-CVE-2020-36066.

Is CVE-2020-36066 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free