github.com/tidwall/gjson known bugs

go

8 known bugs in github.com/tidwall/gjson, with affected versions, fixes and workarounds. Sourced from upstream issue trackers.

8
bugs
Known bugs
SeverityAffectedFixed inTitleStatusSource
highany1.6.5
github.com/tidwall/gjson is vulnerable to Denial of service
GJSON <1.6.5 allows attackers to cause a denial of service (remote) via crafted JSON.
fixedosv:GHSA-wjm3-fq3r-5x46
highany1.6.4
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.
fixedosv:GHSA-w942-gw6m-p62c
highany1.9.3
github.com/tidwall/gjson Vulnerable to REDoS attack
GJSON is a Go package that provides a fast and simple way to get values from a json document. GJSON before 1.9.3 allows a ReDoS (regular expression denial of service) attack.
fixedosv:GHSA-ppj4-34rq-v8j9
highany1.6.6
Improper Validation of Array Index in GJSON
GJSON < 1.6.6 allows attackers to cause a denial of service (panic: runtime error: slice bounds out of range) via a crafted GET call.
fixedosv:GHSA-p64j-r5f4-pwwx
mediumany1.6.5
Denial of service via maliciously crafted JSON in github.com/tidwall/gjson
A maliciously crafted JSON input can cause a denial of service attack.
fixedosv:GO-2022-0957
mediumany1.9.3
Denial of service via maliciously crafted path in github.com/tidwall/gjson
A maliciously crafted path can cause Get and other query functions to consume excessive amounts of CPU and time.
fixedosv:GO-2021-0265
mediumany1.6.4
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.
fixedosv:GO-2021-0059
mediumany1.6.6
Panic due to improper input validation in ForEach 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.
fixedosv:GO-2021-0054
API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/bugs/go/github.com/tidwall/gjson