{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2021-4235",
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "state": "PUBLISHED",
        "assignerShortName": "Go",
        "dateReserved": "2022-07-29T18:56:20.415Z",
        "datePublished": "2022-12-27T21:13:42.393Z",
        "dateUpdated": "2024-08-03T17:23:09.096Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
                "shortName": "Go",
                "dateUpdated": "2023-06-12T19:04:08.123Z"
            },
            "title": "Denial of service in gopkg.in/yaml.v2",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "affected": [
                {
                    "vendor": "gopkg.in/yaml.v2",
                    "product": "gopkg.in/yaml.v2",
                    "collectionURL": "https://pkg.go.dev",
                    "packageName": "gopkg.in/yaml.v2",
                    "versions": [
                        {
                            "version": "0",
                            "lessThan": "2.2.3",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ],
                    "programRoutines": [
                        {
                            "name": "decoder.unmarshal"
                        },
                        {
                            "name": "Decoder.Decode"
                        },
                        {
                            "name": "Unmarshal"
                        },
                        {
                            "name": "UnmarshalStrict"
                        }
                    ],
                    "defaultStatus": "unaffected"
                },
                {
                    "vendor": "github.com/go-yaml/yaml",
                    "product": "github.com/go-yaml/yaml",
                    "collectionURL": "https://pkg.go.dev",
                    "packageName": "github.com/go-yaml/yaml",
                    "programRoutines": [
                        {
                            "name": "decoder.unmarshal"
                        },
                        {
                            "name": "Decoder.Decode"
                        },
                        {
                            "name": "Unmarshal"
                        },
                        {
                            "name": "UnmarshalStrict"
                        }
                    ],
                    "defaultStatus": "affected"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "description": "CWE 400: Uncontrolled Resource Consumption"
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://github.com/go-yaml/yaml/pull/375"
                },
                {
                    "url": "https://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241"
                },
                {
                    "url": "https://pkg.go.dev/vuln/GO-2021-0061"
                },
                {
                    "url": "https://lists.debian.org/debian-lts-announce/2023/07/msg00001.html"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "@simonferquel"
                }
            ]
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T17:23:09.096Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://github.com/go-yaml/yaml/pull/375",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://pkg.go.dev/vuln/GO-2021-0061",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://lists.debian.org/debian-lts-announce/2023/07/msg00001.html",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}