CVE-2021-4235Yaml Project Yaml
Medium 5.5
Follow: this CVE · Yaml Project · Yaml Project Yaml We alert you by email or Slack (account required).
- Priority
- 33
- CVSS 3.1
- 5.5
- EPSS
- 0.4% probability of exploitation in 30 days · percentile 29
- Auth required
- Yes
- Published
- Dec 27, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Yaml.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/go-yaml/yaml |
≤ 2.1.0 |
no fixed version | — |
| Go | github.com/go-yaml/yaml |
all |
no fixed version | — |
| Go | gopkg.in/yaml.v2 |
< 2.2.3 |
2.2.3 |
go get gopkg.in/yaml.v2@v2.2.3 |
| Go | gopkg.in/yaml.v2 |
< 2.2.3 |
2.2.3 |
go get gopkg.in/yaml.v2@v2.2.3 |
Per OSV / GitHub Advisories (GHSA-r88r-gmrh-7j83, GO-2021-0061). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| yaml_project | yaml | < 2.2.3 |
Official advisories
- Red Hat Security Advisory: OpenShift Container Platform 4.12.0 packages and security update · Red Hat · RHSA-2022:7398 · Sep 30, 2024 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Exploit Patch Third Party Advisory
- lists.debian.org
- pkg.go.dev Third Party Advisory