GO-2021-0061

Source
https://pkg.go.dev/vuln/GO-2021-0061
Import Source
https://vuln.go.dev/ID/GO-2021-0061.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2021-0061
Aliases
Related
Published
2021-04-14T20:04:52Z
Modified
2024-09-11T06:12:51.550698Z
Summary
Denial of service in gopkg.in/yaml.v2
Details

Due to unbounded alias chasing, a maliciously crafted YAML file can cause the system to consume significant system resources. If parsing user input, this may be used as a denial of service vector.

References
Credits
    • @simonferquel

Affected packages

Go / gopkg.in/yaml.v2

Package

Name
gopkg.in/yaml.v2
View open source insights on deps.dev
Purl
pkg:golang/gopkg.in/yaml.v2

Affected ranges

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

Ecosystem specific

{
    "imports": [
        {
            "path": "gopkg.in/yaml.v2",
            "symbols": [
                "Decoder.Decode",
                "Unmarshal",
                "UnmarshalStrict",
                "decoder.unmarshal"
            ]
        }
    ]
}

Go / github.com/go-yaml/yaml

Package

Name
github.com/go-yaml/yaml
View open source insights on deps.dev
Purl
pkg:golang/github.com/go-yaml/yaml

Affected ranges

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

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/go-yaml/yaml",
            "symbols": [
                "Decoder.Decode",
                "Unmarshal",
                "UnmarshalStrict",
                "decoder.unmarshal"
            ]
        }
    ]
}