CVE-2021-4235
MEDIUM5.5EPSS 0.03%golang-yaml.v2 - security update
Published: 12/28/2022Modified: 4/28/2026
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.
Affected packages (6)
- Debian/golang-yaml.v2from 0, < 2.2.8-1
- Debian/golang-yaml.v2from 0, < 2.2.2-1+deb10u1
- Go/github.com/go-yaml/yamlfrom 0, <= 2.1.0
- Go/github.com/go-yaml/yamlfrom 0
- Go/gopkg.in/yaml.v2from 0, < 2.2.3
- Go/gopkg.in/yaml.v2from 0, < 2.2.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
References (7)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2021-4235
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2021-4235
- PATCHhttps://github.com/go-yaml/yaml
- WEBhttps://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241
- WEBhttps://github.com/go-yaml/yaml/pull/375
- WEBhttps://lists.debian.org/debian-lts-announce/2023/07/msg00001.html
- WEBhttps://pkg.go.dev/vuln/GO-2021-0061