GO-2021-0076

Source
https://pkg.go.dev/vuln/GO-2021-0076
Import Source
https://vuln.go.dev/ID/GO-2021-0076.json
Aliases
Published
2021-04-14T20:04:52Z
Modified
2023-11-08T03:59:55.891603Z
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.

References

Affected packages

Go / github.com/evanphx/json-patch

Affected ranges

Type
SEMVER
Events
Introduced
0The exact introduced commit is unknown
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"
            ]
        }
    ]
}