CVE-2022-3064 Excessive resource consumption in gopkg.in/yaml.v2
Attackers can cause denial of service by submitting malicious or large YAML documents to applications using the gopkg.in/yaml.v2 library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-3064?
CVE-2022-3064 is a high-severity denial of service vulnerability in gopkg.in/yaml.v2, published on 27 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Parsing malicious or large YAML documents can consume excessive amounts of CPU or memory.
Weakness: CWE-400
Which versions are affected by CVE-2022-3064?
3 open source packages ship an affected version, including gopkg.in/yaml.v2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gopkg.in/yaml.v2 Go | All versions | 2.2.4 |
gopkg.in/yaml.v2 Go | All versions | 2.2.4 |
gopkg.in/yaml.v2 Go | All versions | 2.2.4 |
Linux distribution packages (16)
rhc Red Hat:enterprise_linux:8::appstream | All versions | 1:0.2.5-1.el8_10 |
rhc-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 1:0.2.5-1.el8_10 |
rhc-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 1:0.2.5-1.el8_10 |
rhc Red Hat:enterprise_linux:9::appstream | All versions | 1:0.2.5-1.el9_5 |
rhc-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 1:0.2.5-1.el9_5 |
rhc-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 1:0.2.5-1.el9_5 |
rhc-debuginfo Red Hat:enterprise_linux:9::crb | All versions | 1:0.2.5-1.el9_5 |
rhc-debugsource Red Hat:enterprise_linux:9::crb | All versions | 1:0.2.5-1.el9_5 |
rhc-devel Red Hat:enterprise_linux:9::crb | All versions | 1:0.2.5-1.el9_5 |
etcd Red Hat:openstack:17.0::el9 | All versions | 0:3.4.14-3.el9ost |
etcd-debuginfo Red Hat:openstack:17.0::el9 | All versions | 0:3.4.14-3.el9ost |
etcd-debugsource Red Hat:openstack:17.0::el9 | All versions | 0:3.4.14-3.el9ost |
toolbox Red Hat:rhel_eus:9.2::appstream | All versions | 0:0.0.99.4-1.el9_2 |
toolbox-debuginfo Red Hat:rhel_eus:9.2::appstream | All versions | 0:0.0.99.4-1.el9_2 |
toolbox-debugsource Red Hat:rhel_eus:9.2::appstream | All versions | 0:0.0.99.4-1.el9_2 |
toolbox-tests Red Hat:rhel_eus:9.2::appstream | All versions | 0:0.0.99.4-1.el9_2 |
Products include Yaml Project Yaml.
How do I fix CVE-2022-3064?
Upgrade gopkg.in/yaml.v2 to 2.2.4 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-3064 being exploited?
There is no known exploitation of CVE-2022-3064 in the wild and no public exploit code.
Other vulnerabilities in gopkg.in/yaml.v2
Sources
Also known as AZL-40841, AZL-43939, AZL-43993, AZL-44035, AZL-44067, AZL-44514 and 11 more.