{"id":"CVE-2021-4235","aliases":["CVE-2021-4235","GHSA-r88r-gmrh-7j83","GO-2021-0061"],"related":["CGA-8cfw-g9m8-h5q8","RHSA-2022:7398"],"kind":"vulnerability","state":"published","title":"Denial of service in gopkg.in/yaml.v2","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Debido a la búsqueda ilimitada de alias, un archivo YAML creado con fines malintencionados puede hacer que el sistema consuma importantes recursos. Si se analiza la entrada del usuario, esto se puede utilizar como un vector de denegación de servicio.","source":"nvd"}],"published":"2021-04-14T20:04:52.000Z","modified":"2026-09-10T03:49:50.573Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2.2.3","status":"affected"}],"vendor":"gopkg.in/yaml.v2","product":"gopkg.in/yaml.v2","package":"gopkg.in/yaml.v2","source":"cvelist"},{"ranges":[],"vendor":"github.com/go-yaml/yaml","product":"github.com/go-yaml/yaml","package":"github.com/go-yaml/yaml","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.2.3"}],"ecosystem":"Go","package":"gopkg.in/yaml.v2","purl":"pkg:golang/gopkg.in/yaml.v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"2.1.0"}],"ecosystem":"Go","package":"github.com/go-yaml/yaml","purl":"pkg:golang/github.com/go-yaml/yaml","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.2.3"}],"ecosystem":"Go","package":"gopkg.in/yaml.v2","purl":"pkg:golang/gopkg.in/yaml.v2","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/go-yaml/yaml","purl":"pkg:golang/github.com/go-yaml/yaml","source":"go"},{"ranges":[{"status":"affected","fixed":"2.2.3"}],"vendor":"yaml_project","product":"yaml","cpe":"cpe:2.3:a:yaml_project:yaml:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/go-yaml/yaml/pull/375","tags":["exploit","fix","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241","tags":["fix","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0061","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/07/msg00001.html","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4235","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/go-yaml/yaml","tags":["package"],"sources":["ghsa"]}],"credits":["@simonferquel"],"assigner":"Go","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-04-11T16:24:34.544Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-4235","url":"https://www.cve.org/CVERecord?id=CVE-2021-4235","licence":"CVE Terms of Use","modified":"2025-04-11T16:25:11.371Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r88r-gmrh-7j83","url":"https://github.com/advisories/GHSA-r88r-gmrh-7j83","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:50.573Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2021-0061","url":"https://pkg.go.dev/vuln/GO-2021-0061","licence":"CC-BY-4.0","modified":"2026-02-04T03:07:53.209Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-4235","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4235","licence":"Public domain","modified":"2026-06-17T04:19:19.340Z"}],"updatedAt":"2026-11-25T22:58:08.017Z","epss":{"score":0.00431,"percentile":0.3921,"date":"2026-12-01T12:00:22.000Z"}}