CVE-2021-4235
published medium CVSS 3.1 · 5.5Denial of service in gopkg.in/yaml.v2
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gopkg.in/yaml.v2 | — | gopkg.in/yaml.v20 to < 2.2.3 · Other versions: unaffected | Affected | Not stated | Go |
| github.com/go-yaml/yaml | — | github.com/go-yaml/yaml | Affected | Not stated | Go |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | buster | golang-yaml.v2 | Advisory build | 2.2.2-1+deb10u1 | DLA-3479-1 |
| Ubuntu | bionic | golang-gopkg-yaml.v2-dev | Advisory build | 0.0+git20170407.0.cd8b52f-1ubuntu2+esm1 | USN-6287-1 |
| Ubuntu | bionic | golang-yaml.v2 | Advisory build | 0.0+git20170407.0.cd8b52f-1ubuntu2+esm1 | USN-6287-1 |
| Ubuntu | bionic | golang-yaml.v2-dev | Advisory build | 0.0+git20170407.0.cd8b52f-1ubuntu2+esm1 | USN-6287-1 |
| Ubuntu | focal | golang-gopkg-yaml.v2-dev | Advisory build | 2.2.2-1ubuntu0.1 | USN-6287-1 |
Show 4 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | golang-yaml.v2 | Advisory build | 2.2.2-1ubuntu0.1 | USN-6287-1 |
| Ubuntu | focal | golang-yaml.v2-dev | Advisory build | 2.2.2-1ubuntu0.1 | USN-6287-1 |
| Ubuntu | xenial | golang-yaml.v2 | Advisory build | 0.0+git20160301.0.a83829b-1ubuntu0.1~esm1 | USN-6287-1 |
| Ubuntu | xenial | golang-yaml.v2-dev | Advisory build | 0.0+git20160301.0.a83829b-1ubuntu0.1~esm1 | USN-6287-1 |
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 advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gopkg.in/yaml.v2 | gopkg.in/yaml.v2 | 0 to < 2.2.3 (affected · semver)Default: unaffected | Go · cna |
| github.com/go-yaml/yaml | github.com/go-yaml/yaml | Default: affected | Go · cna |
Weaknesses
1- CWE 400: Uncontrolled Resource Consumption
References
4Provider assertions
3Go · cna
Denial of service in gopkg.in/yaml.v2
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 00e085a768a11a98d72dec8ee1b6d795d2df2dab2a58c87bc78df7196d816196
- Ingested
- 23 Sep 2026, 07:57:18 UTC
- Source record
- Official CVE record