CVE-2021-4235: Denial of service in gopkg.in/yaml.v2
Vulnerability summary
CVE-2021-4235 is a medium (CVSS 5.5) vulnerability in gopkg.in/yaml.v2. EPSS estimates a 0.43% chance of exploitation in the next 30 days, higher than 37% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 4Timeline
- 27-12-2022PublishedVulnerability first disclosed.
- 11-04-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · GoEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.43%
Chance of exploitation in the next 30 days
Percentile
37%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.41% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundYaml
Maturity: poc
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard4 products
- dex-k8s-authenticator< 1.4.0-r34
- k3d< 5.6.0-r11
- k3d-proxy< 5.6.0-r11
- k3d-tools< 5.6.0-r11
Ubuntu4 products
- golang-github-coreos-discovery-etcd-ioAll versions (No fix recorded)
- golang-yaml.v2< 0.0+git20160301.0.a83829b-1ubuntu0.1~esm1 | < 0.0+git20170407.0.cd8b52f-1ubuntu2+esm1 | < 2.2.2-1ubuntu0.1
- singularity-containerAll versions (No fix recorded)
- webhookAll versions (No fix recorded)
Wolfi3 products
- k3d< 5.6.0-r11
- k3d-proxy< 5.6.0-r11
- k3d-tools< 5.6.0-r11
Debian1 product
- golang-yaml.v2< 2.2.8-1
Github.com/go-yaml1 product
- yaml≤ 2.1.0 | All versions (No fix recorded)
Gopkg.in1 product
- yaml.v2< 2.2.3
Gopkg.in/yaml.v21 product
- gopkg.in/yaml.v2< 2.2.3
Yaml_project1 product
- yaml< 2.2.3
8 vendors · 16 products
References
10 links- github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241REPORTFIXWEBPatchThird Party Advisory
- github.com/go-yaml/yamlPACKAGE