GO-2021-0076

Source
https://pkg.go.dev/vuln/GO-2021-0076
Import Source
https://vuln.go.dev/ID/GO-2021-0076.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2021-0076
Aliases
Published
2021-04-14T20:04:52Z
Modified
2024-05-20T16:03:47Z
Summary
Out-of-bounds write in github.com/evanphx/json-patch
Details

A malicious JSON patch can cause a panic due to an out-of-bounds write attempt. This can be used as a denial of service vector if exposed to arbitrary user input.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2021-0076"
}
References

Affected packages

Go / github.com/evanphx/json-patch

Package

Name
github.com/evanphx/json-patch
View open source insights on deps.dev
Purl
pkg:golang/github.com/evanphx/json-patch

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.5.2
Introduced
3.0.0+incompatible
Fixed
3.0.1-0.20180525145409-4c9aadca8f89+incompatible

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/evanphx/json-patch",
            "symbols": [
                "Patch.Apply",
                "Patch.ApplyIndent",
                "partialArray.add"
            ]
        }
    ]
}