GO-2020-0036

Source
https://pkg.go.dev/vuln/GO-2020-0036
Import Source
https://vuln.go.dev/ID/GO-2020-0036.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2020-0036
Aliases
Published
2021-04-14T20:04:52Z
Modified
2024-05-20T16:03:47Z
Summary
Excessive resource consumption in YAML parsing in gopkg.in/yaml.v2
Details

Due to unbounded aliasing, a crafted YAML file can cause consumption of significant system resources. If parsing user supplied input, this may be used as a denial of service vector.

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

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.8

Ecosystem specific

{
    "imports": [
        {
            "path": "gopkg.in/yaml.v2",
            "symbols": [
                "Decoder.Decode",
                "Unmarshal",
                "UnmarshalStrict",
                "yaml_parser_decrease_flow_level",
                "yaml_parser_fetch_more_tokens",
                "yaml_parser_fetch_stream_start",
                "yaml_parser_fetch_value",
                "yaml_parser_remove_simple_key",
                "yaml_parser_save_simple_key"
            ]
        }
    ]
}

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",
                "yaml_parser_decrease_flow_level",
                "yaml_parser_fetch_more_tokens",
                "yaml_parser_fetch_stream_start",
                "yaml_parser_fetch_value",
                "yaml_parser_remove_simple_key",
                "yaml_parser_save_simple_key"
            ]
        }
    ]
}