GO-2021-0054

Source
https://pkg.go.dev/vuln/GO-2021-0054
Import Source
https://vuln.go.dev/ID/GO-2021-0054.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2021-0054
Aliases
Published
2021-04-14T20:04:52Z
Modified
2024-05-20T16:03:47Z
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.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2021-0054"
}
References
Credits
    • @toptotu

Affected packages

Go / github.com/tidwall/gjson

Package

Name
github.com/tidwall/gjson
View open source insights on deps.dev
Purl
pkg:golang/github.com/tidwall/gjson

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6.6

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/tidwall/gjson",
            "symbols": [
                "Get",
                "GetBytes",
                "GetMany",
                "GetManyBytes",
                "Result.ForEach",
                "Result.Get",
                "unwrap"
            ]
        }
    ]
}