Live threats

All CVEs / Yaml Project

CVE-2021-4235Yaml Project Yaml

Medium 5.5

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Yaml.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
yaml_projectyaml< 2.2.3

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.