GO-2021-0057

Source
https://pkg.go.dev/vuln/GO-2021-0057
Import Source
https://vuln.go.dev/ID/GO-2021-0057.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2021-0057
Aliases
Published
2021-04-14T20:04:52Z
Modified
2024-05-20T16:03:47Z
Summary
Panic due to improper input validation in github.com/buger/jsonparser
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-0057"
}
References
Credits
    • @toptotu

Affected packages

Go / github.com/buger/jsonparser

Package

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

Affected ranges

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

Ecosystem specific

{
    "imports": [
        {
            "symbols": [
                "ArrayEach",
                "Delete",
                "EachKey",
                "FuzzDelete",
                "FuzzEachKey",
                "FuzzGetBoolean",
                "FuzzGetFloat",
                "FuzzGetInt",
                "FuzzGetString",
                "FuzzGetUnsafeString",
                "FuzzObjectEach",
                "FuzzSet",
                "Get",
                "GetBoolean",
                "GetFloat",
                "GetInt",
                "GetString",
                "GetUnsafeString",
                "ObjectEach",
                "Set",
                "searchKeys"
            ],
            "path": "github.com/buger/jsonparser"
        }
    ]
}