CVE-2021-4235
MEDIUM 5.5CVSS 3.1YAML Go package vulnerable to denial of service
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.
- Published
- 27 Dec 2022
- Last modified
- 10 Sep 2026
- Assigned by
- security@golang.org
- NVD status
- Modified
- Also known as
- GHSA-r88r-gmrh-7j83GO-2021-0061
- Sources
- NVDJSONOSV GHSA-r88r-gmrh-7j83JSONOSV GO-2021-0061JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | yaml_project | yamlcpe:2.3:a:yaml_project:yaml:*:*:*:*:*:go:*:* |
< 2.2.3 | 2.2.3 |
| OSV | Go | gopkg.in/yaml.v2 | < 2.2.3 | 2.2.3 |
| OSV | Go | github.com/go-yaml/yaml | <= 2.1.0 | |
| OSV | Go | github.com/go-yaml/yaml | all versions |
References
- https://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241 · Patch, Third Party Advisory, WEB, FIX
- https://github.com/go-yaml/yaml/pull/375 · Exploit, Patch, Third Party Advisory, WEB, FIX
- https://lists.debian.org/debian-lts-announce/2023/07/msg00001.html · WEB
- https://pkg.go.dev/vuln/GO-2021-0061 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-4235 · ADVISORY
- https://github.com/go-yaml/yaml · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 27 Dec 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Apr 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Dec 2022)