
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-3064 is a vulnerability in the go-yaml library that affects versions prior to v2.2.4. The vulnerability was discovered and disclosed in December 2022, where parsing malicious or large YAML documents could consume excessive amounts of CPU or memory. This vulnerability affects various software packages that depend on the go-yaml library, including Kubernetes, Docker (Moby Engine), and other Go-based applications (NVD, Go Packages).
The vulnerability stems from insufficient resource consumption controls in YAML parsing operations. The issue manifests in two main areas: parse time of excessively deep nested or indented documents, and alias node expansion limits. The vulnerability has a CVSS v3.1 base score of 7.5 (HIGH), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. The vulnerability is classified under CWE-400 (Uncontrolled Resource Consumption) (NVD, GitHub Commit).
The vulnerability can lead to denial of service conditions through excessive CPU or memory consumption. When parsing malicious or large YAML documents, the system can experience significant resource drain, potentially affecting service availability. The impact is particularly severe for applications that process untrusted YAML input (NVD, Debian LTS).
The vulnerability can be exploited by submitting maliciously crafted YAML documents to affected services. The attack vector is network-accessible, requires no authentication, and needs no user interaction. The vulnerability has been demonstrated to be exploitable through both deeply nested documents and documents with excessive alias expansion (GitHub Commit).
The primary mitigation is to upgrade to go-yaml version 2.2.4 or later, which implements improved heuristics for preventing CPU and memory abuse. The fix includes limiting stack depth to 10,000 to keep parse times of pathological documents sub-second, and implementing more restrictive alias expansion limits. For larger documents, the expansion is limited to 10% of the input size, while smaller documents maintain higher expansion rates (GitHub Release, GitHub Commit).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."