CVE-2022-3064
Packer vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Packer vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-56852HIGH7.5
  • cAdvisor logocAdvisor
  • crossplane-provider-aws-sfn
NoYesJul 21, 2026
CVE-2026-19589HIGH7.1
  • Packer logoPacker
  • cpe:2.3:a:hashicorp:packer
NoYesAug 17, 2026
CVE-2026-71556HIGH7.1
  • Packer logoPacker
  • cloudbeat-fips-9.5
NoYesAug 07, 2026
CVE-2026-71557MEDIUM6.3
  • Packer logoPacker
  • kargo-1.10
NoYesAug 07, 2026
CVE-2026-42505MEDIUM5.3
  • Go logoGo
  • rclone
NoYesJul 08, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management