GitHub Advisoryadvisory · Go
GHSA-r88r-gmrh-7j83 YAML Go package vulnerable to denial of service
MEDIUM
Official page ↗
- Aliases
- CVE-2021-4235
- Ecosystem
- Go
- Packages
- gopkg.in/yaml.v2, github.com/go-yaml/yaml
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Reviewed
- 2022-12-30
Affected packages
• Go gopkg.in/yaml.v2: < 2.2.3 → fixed in 2.2.3
• Go github.com/go-yaml/yaml: <= 2.1.0 (no fix yet)
Description
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.
Related
Alias · CVE (1)
- CVE-2021-4235 Due to unbounded alias chasing, a maliciously crafted YAML file can cause the system to consume significant system resources. vulnerability
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-4235 advisory
- https://github.com/go-yaml/yaml/pull/375 web
- https://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241 web
- https://github.com/go-yaml/yaml package
- https://lists.debian.org/debian-lts-announce/2023/07/msg00001.html web
- https://pkg.go.dev/vuln/GO-2021-0061 web