{"id":"GO-2021-0054","summary":"Panic due to improper input validation in ForEach in github.com/tidwall/gjson","details":"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.","aliases":["CVE-2020-36067","GHSA-p64j-r5f4-pwwx"],"modified":"2026-03-17T04:05:38.296811Z","published":"2021-04-14T20:04:52Z","database_specific":{"review_status":"REVIEWED","url":"https://pkg.go.dev/vuln/GO-2021-0054"},"references":[{"type":"FIX","url":"https://github.com/tidwall/gjson/commit/bf4efcb3c18d1825b2988603dea5909140a5302b"},{"type":"WEB","url":"https://github.com/tidwall/gjson/issues/196"}],"affected":[{"package":{"name":"github.com/tidwall/gjson","ecosystem":"Go","purl":"pkg:golang/github.com/tidwall/gjson"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.6.6"}]}],"ecosystem_specific":{"imports":[{"symbols":["Get","GetBytes","GetMany","GetManyBytes","Result.ForEach","Result.Get","unwrap"],"path":"github.com/tidwall/gjson"}]},"database_specific":{"source":"https://vuln.go.dev/ID/GO-2021-0054.json"}}],"schema_version":"1.7.5","credits":[{"name":"@toptotu"}]}