{"answers":{"affected":"3 open source packages ship an affected version, including gopkg.in/yaml.v2. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-3064 in the wild and no public exploit code.","fix":"Upgrade gopkg.in/yaml.v2 to 2.2.4 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2022-3064 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2022-3064 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- gopkg.in/yaml.v2 (Go): affected all versions; fixed in 2.2.4\n- gopkg.in/yaml.v2 (Go): affected all versions; fixed in 2.2.4\n- gopkg.in/yaml.v2 (Go): affected all versions; fixed in 2.2.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-3064/ (Markdown: https://insights.sbomify.com/CVE-2022-3064/index.md)","id":"CVE-2022-3064","markdown":"https://insights.sbomify.com/CVE-2022-3064/index.md","name":"CVE-2022-3064","record":{"aliases":["AZL-40841","AZL-43939","AZL-43993","AZL-44035","AZL-44067","AZL-44514","AZL-44610","CLEANSTART-2026-YU71715","CLSA-2025-1762422500","DEBIAN-CVE-2022-3064","GHSA-6q6q-88xp-6f2r","GO-2022-0956","RHSA-2023:1014","RHSA-2024:10759","RHSA-2024:10784","RHSA-2024:4443","UBUNTU-CVE-2022-3064"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Go YAML library","requires_auth":"none","summary":"Attackers can cause denial of service by submitting malicious or large YAML documents to applications using the gopkg.in/yaml.v2 library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Go","cpe":[{"product":"yaml","vendor":"yaml_project"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"Parsing malicious or large YAML documents can consume excessive amounts of CPU or memory.","ecosystems":["Go","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::crb","Red Hat:openstack:17.0::el9","Red Hat:rhel_eus:9.2::appstream"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Excessive resource consumption in gopkg.in/yaml.v2","id":"CVE-2022-3064","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"denial_of_service","year":"2022"},"n_packages":19,"n_references":10,"next":{"headline":"Improper Access Control in jgraph/drawio","id":"CVE-2022-3065"},"packages":[{"ecosystem":"Go","fixed":["2.2.4"],"introduced":["0"],"last_affected":[],"package":"gopkg.in/yaml.v2","purl":null,"source":"GHSA-6q6q-88xp-6f2r"},{"ecosystem":"Go","fixed":["2.2.4"],"introduced":["0"],"last_affected":[],"package":"gopkg.in/yaml.v2","purl":"pkg:golang/gopkg.in/yaml.v2","source":"GHSA-6q6q-88xp-6f2r"},{"ecosystem":"Go","fixed":["2.2.4"],"introduced":["0"],"last_affected":[],"package":"gopkg.in/yaml.v2","purl":"pkg:golang/gopkg.in/yaml.v2","source":"GO-2022-0956"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:0.2.5-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"rhc","purl":"pkg:rpm/redhat/rhc","source":"RHSA-2024:10784"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:0.2.5-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"rhc-debuginfo","purl":"pkg:rpm/redhat/rhc-debuginfo","source":"RHSA-2024:10784"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:0.2.5-1.el8_10"],"introduced":["0"],"last_affected":[],"package":"rhc-debugsource","purl":"pkg:rpm/redhat/rhc-debugsource","source":"RHSA-2024:10784"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:0.2.5-1.el9_5"],"introduced":["0"],"last_affected":[],"package":"rhc","purl":"pkg:rpm/redhat/rhc","source":"RHSA-2024:10759"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:0.2.5-1.el9_5"],"introduced":["0"],"last_affected":[],"package":"rhc-debuginfo","purl":"pkg:rpm/redhat/rhc-debuginfo","source":"RHSA-2024:10759"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["1:0.2.5-1.el9_5"],"introduced":["0"],"last_affected":[],"package":"rhc-debugsource","purl":"pkg:rpm/redhat/rhc-debugsource","source":"RHSA-2024:10759"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["1:0.2.5-1.el9_5"],"introduced":["0"],"last_affected":[],"package":"rhc-debuginfo","purl":"pkg:rpm/redhat/rhc-debuginfo","source":"RHSA-2024:10759"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["1:0.2.5-1.el9_5"],"introduced":["0"],"last_affected":[],"package":"rhc-debugsource","purl":"pkg:rpm/redhat/rhc-debugsource","source":"RHSA-2024:10759"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["1:0.2.5-1.el9_5"],"introduced":["0"],"last_affected":[],"package":"rhc-devel","purl":"pkg:rpm/redhat/rhc-devel","source":"RHSA-2024:10759"},{"ecosystem":"Red Hat:openstack:17.0::el9","fixed":["0:3.4.14-3.el9ost"],"introduced":["0"],"last_affected":[],"package":"etcd","purl":"pkg:rpm/redhat/etcd","source":"RHSA-2023:1014"},{"ecosystem":"Red Hat:openstack:17.0::el9","fixed":["0:3.4.14-3.el9ost"],"introduced":["0"],"last_affected":[],"package":"etcd-debuginfo","purl":"pkg:rpm/redhat/etcd-debuginfo","source":"RHSA-2023:1014"},{"ecosystem":"Red Hat:openstack:17.0::el9","fixed":["0:3.4.14-3.el9ost"],"introduced":["0"],"last_affected":[],"package":"etcd-debugsource","purl":"pkg:rpm/redhat/etcd-debugsource","source":"RHSA-2023:1014"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:0.0.99.4-1.el9_2"],"introduced":["0"],"last_affected":[],"package":"toolbox","purl":"pkg:rpm/redhat/toolbox","source":"RHSA-2024:4443"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:0.0.99.4-1.el9_2"],"introduced":["0"],"last_affected":[],"package":"toolbox-debuginfo","purl":"pkg:rpm/redhat/toolbox-debuginfo","source":"RHSA-2024:4443"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:0.0.99.4-1.el9_2"],"introduced":["0"],"last_affected":[],"package":"toolbox-debugsource","purl":"pkg:rpm/redhat/toolbox-debugsource","source":"RHSA-2024:4443"},{"ecosystem":"Red Hat:rhel_eus:9.2::appstream","fixed":["0:0.0.99.4-1.el9_2"],"introduced":["0"],"last_affected":[],"package":"toolbox-tests","purl":"pkg:rpm/redhat/toolbox-tests","source":"RHSA-2024:4443"}],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2022-3063"},"products":["gopkg.in/yaml.v2"],"published":"2022-12-27","related":[{"cvss_score":7.5,"headline":"Uncaught Exception in eemeli/yaml","id":"CVE-2023-2251","kev_date_added":null,"published":"2023-04-24"},{"cvss_score":5.5,"headline":"Denial of service in gopkg.in/yaml.v2","id":"CVE-2021-4235","kev_date_added":null,"published":"2022-12-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-14","vendors":["gopkg.in/yaml.v2"]},"summary":"Attackers can cause denial of service by submitting malicious or large YAML documents to applications using the gopkg.in/yaml.v2 library.","url":"https://insights.sbomify.com/CVE-2022-3064/"}