medium5.5
CVE-2021-4235
YAML Go package vulnerable to denial of service
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | gopkg.in/yaml.v2 | < 2.2.3 | 2.2.3 |
| go | github.com/go-yaml/yaml | <= 2.1.0 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Yaml Project | Yaml | before 2.2.3 |
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241
- https://github.com/go-yaml/yaml/pull/375
- https://lists.debian.org/debian-lts-announce/2023/07/msg00001.html
- https://pkg.go.dev/vuln/GO-2021-0061
- https://github.com/advisories/GHSA-r88r-gmrh-7j83
- https://nvd.nist.gov/vuln/detail/CVE-2021-4235