HighGHSA-wjm3-fq3r-5x46CVE-2020-36066GO-2022-0957
github.com/tidwall/gjson is vulnerable to Denial of service
Published 18 May 2021 · Updated 20 May 2024
Is your project on an affected github.com/tidwall/gjson?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.6.5
- Fixed in
- 1.6.5
Update to the fixed version for your release line, for example:
go get github.com/tidwall/gjson@v1.6.5Details
GJSON <1.6.5 allows attackers to cause a denial of service (remote) via crafted JSON.
Is GHSA-wjm3-fq3r-5x46 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/tidwall/gjson, and gives you the command that fixes it.
More advisories for github.com/tidwall/gjson
- HighCVE-2020-36067Improper Validation of Array Index in GJSON · 6 Feb 2023
- LowCVE-2021-42248Denial of service via maliciously crafted path in github.com/tidwall/gjson · 15 Aug 2022
- HighCVE-2021-42248github.com/tidwall/gjson Vulnerable to REDoS attack · 25 Oct 2021
- HighCVE-2020-35380Denial of service in GJSON · 23 Jun 2021
- LowCVE-2020-36067Panic due to improper input validation in ForEach in github.com/tidwall/gjson · 14 Apr 2021
- LowCVE-2020-35380Panic due to improper input validation in Get in github.com/tidwall/gjson · 14 Apr 2021
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2020-36066
- Linkgithub.com/tidwall/gjson/issues/195
- Linkgithub.com/tidwall/gjson/issues/195#issuecomment-755303148
- Linkgithub.com/tidwall/gjson/commit/9f58baa7a613f89dfdc764c39e47fd3a15606153
- Linkgithub.com/tidwall/match/commit/c2f534168b739a7ec1821a33839fb2f029f26bbc
- Packagegithub.com/tidwall/gjson
- Linkpkg.go.dev/vuln/GO-2022-0957
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.