CVE-2020-35380
Denial of service in GJSON
GJSON before 1.6.4 allows attackers to cause a denial of service via crafted JSON.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.5
GJSON before 1.6.4 allows attackers to cause a denial of service via crafted JSON.
- Record
CVE-2020-35380- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Updated
- 2026-11-02
CVE List No score
GJSON before 1.6.4 allows attackers to cause a denial of service via crafted JSON.
- Record
CVE-2020-35380- Updated
- 2026-11-02
EUVDEUVD-2021-1416 No score
GJSON before 1.6.4 allows attackers to cause a denial of service via crafted JSON.
- Record
EUVD-2021-1416- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-w942-gw6m-p62c
7.5
Denial of service in GJSON
GJSON before 1.6.4 allows attackers to cause a denial of service via crafted JSON. Due to improper bounds checking, maliciously crafted JSON objects can cause an out-of-bounds panic. If parsing user input, this may be used as a denial of service vector.
- Record
GHSA-w942-gw6m-p62c- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
OSV
7.5
GJSON before 1.6.4 allows attackers to cause a denial of service via crafted JSON.
- Record
CVE-2020-35380- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2020-35380
7.5
GJSON before 1.6.4 allows attackers to cause a denial of service via crafted JSON.
- Record
DEBIAN-CVE-2020-35380- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVGHSA-w942-gw6m-p62c
7.5
Denial of service in GJSON
GJSON before 1.6.4 allows attackers to cause a denial of service via crafted JSON. Due to improper bounds checking, maliciously crafted JSON objects can cause an out-of-bounds panic. If parsing user input, this may be used as a denial of service vector.
- Record
GHSA-w942-gw6m-p62c- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-400
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2020-35380
7.5
GJSON before 1.6.4 allows attackers to cause a denial of service via crafted JSON.
- Record
UBUNTU-CVE-2020-35380- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVGO-2021-0059 No score
Panic due to improper input validation in Get in github.com/tidwall/gjson
Due to improper bounds checking, maliciously crafted JSON objects can cause an out-of-bounds panic. If parsing user input, this may be used as a denial of service vector.
- Record
GO-2021-0059- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/tidwall/gjsonGo |
before 1.6.4 | 1.6.4 |
golang-github-tidwall-gjsonDebian:12 |
before 1.6.7-1 | 1.6.7-1 |
golang-github-tidwall-gjsonDebian:13 |
before 1.6.7-1 | 1.6.7-1 |
golang-github-tidwall-gjsonDebian:14 |
before 1.6.7-1 | 1.6.7-1 |
golang-github-tidwall-gjsonUbuntu:20.04:LTS |
All versions, plus listed versions 1.1.5-2 |
None known |
golang-github-tidwall-gjsonUbuntu:22.04:LTS |
All versions, plus listed versions 1.6.7-1 |
None known |
golang-github-tidwall-gjsonUbuntu:24.04:LTS |
All versions, plus listed versions 1.14.4-21.17.1-1 |
None known |
golang-github-tidwall-gjsonUbuntu:25.10 |
All versions, plus listed versions 1.17.1-1 |
None known |
golang-github-tidwall-gjsonUbuntu:26.10 |
All versions, plus listed versions 1.17.1-11.19.0-1 |
None known |
golang-github-tidwall-gjsonUbuntu:26.04:LTS |
All versions, plus listed versions 1.17.1-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2020-35380 is a high vulnerability (CVSS 7.5) in Gjson Project Gjson, published December 15, 2020. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.46%, the 73rd percentile. Fixed in github.com/tidwall/gjson 1.6.4.
References
github.com/tidwall/gjson/issues/192
nvd.nist.gov/vuln/detail/CVE-2020-35380
github.com/tidwall/gjson/commit/f0ee9ebde4b619767ae4ac03e8e42addb530f6bc
pkg.go.dev/vuln/GO-2021-0059
github.com/advisories/GHSA-w942-gw6m-p62c
security-tracker.debian.org/tracker/CVE-2020-35380
github.com/tidwall/gjson
ubuntu.com/security/CVE-2020-35380
cve.org/CVERecord?id=CVE-2020-35380