VDB
Sign up
HIGH7.5

GHSA-w942-gw6m-p62c

Denial of service in GJSON

Quick fix

GHSA-w942-gw6m-p62c — github.com/tidwall/gjson: upgrade to the fixed version with the command below.

go get github.com/tidwall/gjson@v1.6.4

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/tidwall/gjson
Introduced in: 0Fixed in: 1.6.4
Fixgo get github.com/tidwall/gjson@v1.6.4

References