ADVISORIES

Go Vulnerability Database

GO-2021-0054

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.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/tidwall/gjson
All versions before 1.6.6 (fixed in 1.6.6)

References