What’s Vulnerable › Vulnerabilities
CVE-2022-3064: Excessive resource consumption in gopkg.in/yaml.v2
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-12-27 · updated 2026-06-17
- Weakness: CWE-400
Description
Parsing malicious or large YAML documents can consume excessive amounts of CPU or memory.
Affected products
- gopkg.in/yaml.v2: before 2.2.4 — fixed in 2.2.4
- Gopkg.In/Yaml.V2: before 2.2.4 — fixed in 2.2.4
How to fix
Upgrade to a fixed version: gopkg.in/yaml.v2 2.2.4; Gopkg.In/Yaml.V2 2.2.4. Check the vendor advisory for mitigations.
References
- https://github.com/go-yaml/yaml/commit/f221b8435cfb71e54062f6c6e99e9ade30b124d5
- https://github.com/go-yaml/yaml/releases/tag/v2.2.4
- https://lists.debian.org/debian-lts-announce/2023/07/msg00001.html
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4SBIUECMLNC572P23DDOKJNKPJVX26SP/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ANIOPUXWIHVRA6CEWXCGOMX3YYS6KFHG/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYZOKMMVX4SIEHPJW3SJUQGMO5YZCPHC/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PW3XC47AUW5J5M2ULJX7WCCL3B2ETLMT/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XNF4OLYZRQE75EB5TW5N42FSXHBXGWFE/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTE4ITXXPIWZEQ4HYQCB6N6GZIMWXDAI/
- https://pkg.go.dev/vuln/GO-2022-0956
- https://github.com/go-yaml/yaml/commit/f221b8435cfb71e54062f6c6e99e9ade30b124d5
- https://github.com/go-yaml/yaml/releases/tag/v2.2.4
Get alerted when CVE-2022-3064 or the next vulnerability affects your stack