{"id":"CVE-2021-4235","published":"2022-12-27T21:13:42Z","modified":"2025-04-11T16:25:11Z","title":"Denial of service in gopkg.in/yaml.v2","vendor":"gopkg.in/yaml.v2","product":"gopkg.in/yaml.v2","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00427,"percentile":0.37765,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/go-yaml/yaml/pull/375","tags":[]},{"url":"https://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2021-0061","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2023/07/msg00001.html","tags":[]}],"priority":{"score":11.4,"factors":[{"name":"EPSS percentile","points":7.55},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"gopkg-in-yaml-v2","affectedVersions":[{"vendor":"gopkg.in/yaml.v2","product":"gopkg.in/yaml.v2","versions":["< 2.2.3"]},{"vendor":"github.com/go-yaml/yaml","product":"github.com/go-yaml/yaml","versions":["all versions"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-11T16:24:34.544009Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gopkg.in/yaml.v2","vulnerableRanges":["<2.2.3"],"patched":["2.2.3"],"from":["GHSA-r88r-gmrh-7j83","GO-2021-0061"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/go-yaml/yaml","vulnerableRanges":["<=2.1.0","all versions"],"patched":[],"from":["GHSA-r88r-gmrh-7j83","GO-2021-0061"],"provenance":"source"}],"summary":{"text":"The gopkg.in/yaml.v2 Go library, the YAML parser used in the gopkg.in/yaml.v2 package, contains a flaw in its handling of YAML aliases: it chases them without bounds. An attacker can exploit this by supplying a maliciously crafted YAML file that makes the parser consume significant system resources, which requires a local attack vector, no privileges, and user interaction, and the denial of service becomes a network-reachable concern when the library parses user-supplied input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:58:03Z"},"euvd":{"id":"EUVD-2022-7731","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gopkg-in-yaml-v2-cve-2019-11254","parents":[{"from":"CVE-2022-28948","to":"CVE-2021-4235","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["decode.go"],"commits":["https://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241","https://github.com/go-yaml/yaml/commit/8f96da9f5d5eff988554c1aae1784627c4bf6754","https://github.com/go-yaml/yaml/commit/f6f7691b1fdeb513f56608cd2c32c51f8194bf51"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2021-4235","to":"CVE-2022-3064","relation":"successor","confidence":"high","kind":"lineage","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:gopkg.in/yaml.v2","fromFixed":"2.2.3","toFixed":"2.2.4","daysApart":0},{"kind":"same-code","provenance":"machine","files":["decode.go"],"commits":["https://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241","https://github.com/go-yaml/yaml/commit/f221b8435cfb71e54062f6c6e99e9ade30b124d5"],"basis":"shared function","functions":["prepare"]},{"kind":"similar","provenance":"machine","score":0.29,"basis":"same package + description similarity"}]}],"packageHistory":[{"cve":"CVE-2021-4235","published":"2022-12-27","fixed":"2.2.3","kev":false},{"cve":"CVE-2022-3064","published":"2022-12-27","fixed":"2.2.4","kev":false},{"cve":"CVE-2019-11254","published":"2020-04-01","fixed":"2.2.8","kev":false}],"package":"Go:gopkg.in/yaml.v2"}}