{"answers":{"affected":"2 open source packages ship an affected version, including org.yaml:snakeyaml. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-1471 exists.","fix":"Upgrade org.yaml:snakeyaml to 2.0 or later.","what":"CVE-2022-1471 is a high-severity unsafe deserialization vulnerability in SnakeYAML, published on 1 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-1471 and fix it if it is affected.\n\nWhat it is: CVE-2022-1471 is a high-severity unsafe deserialization vulnerability in SnakeYAML, published on 1 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-1471 exists.\n\nAffected packages and fixed versions:\n- org.yaml:snakeyaml (Maven): affected all versions; fixed in 2.0\n- org.yaml:snakeyaml (Maven): affected all versions; fixed in 2.0\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-1471/ (Markdown: https://insights.sbomify.com/CVE-2022-1471/index.md)","id":"CVE-2022-1471","markdown":"https://insights.sbomify.com/CVE-2022-1471/index.md","name":"CVE-2022-1471","record":{"aliases":["ALSA-2022:9058","CLEANSTART-2026-LU07367","CLEANSTART-2026-ND79703","CLEANSTART-2026-QU79402","CLSA-2024-1732492822","CLSA-2025-1751328253","CLSA-2025-1751328254","CLSA-2025-1751328256","CLSA-2026-1792422122","CLSA-2026-1792422186","DEBIAN-CVE-2022-1471","ECHO-200a-9a58-ad64","GHSA-mjmj-j48q-9wg2","MINI-3c7c-xx5v-hrx2","MINI-47mh-xmq2-g9jq","MINI-524x-fc7g-gw3g","MINI-92x5-x256-9qpv","MINI-hq42-g236-46v3","MINI-ph9p-pcqg-v6h3","MINI-q3hj-f9gr-3g2x","MINI-rw9f-2xr8-grff","MINI-v2pg-vj8j-m2g6","MINI-xhgv-7jjc-4f9j","RHLW-2026-db6cfa79167ec456","RHSA-2022:9058","RLSA-2022:9058","ROOT-APP-MAVEN-CVE-2022-1471","UBUNTU-CVE-2022-1471"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Java YAML library","requires_auth":"low_privilege","summary":"Attackers can achieve remote code execution by providing malicious YAML content to applications using SnakeYAML's unsafe Constructor class.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Google","cpe":[{"product":"snakeyaml","vendor":"snakeyaml_project"}],"cvss":{"score":8.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"SnakeYaml's Constructor() class does not restrict types which can be instantiated during deserialization. Deserializing yaml content provided by an attacker can lead to remote code execution. We recommend using SnakeYaml's SafeConsturctor when parsing untrusted content to restrict deserialization. We recommend upgrading to version 2.0 and beyond.","ecosystems":["AlmaLinux:8","Maven","Red Hat:enterprise_linux:8::appstream","Rocky Linux:8"],"exploits":{"exploitdb":0,"first_seen":"2023-03-02","github_poc":7,"max_poc_stars":8,"metasploit":1,"nuclei":0,"refs":[{"date":"2023-03-02T16:33:02Z","kind":"github_poc","ref":"https://github.com/1fabunicorn/SnakeYAML-CVE-2022-1471-POC","stars":8,"title":"Code for veracode blog"},{"date":"2023-05-08T14:46:22Z","kind":"github_poc","ref":"https://github.com/falconkei/snakeyaml_cve_poc","stars":4,"title":"SnakeYAML-CVE-2022-1471-POC"},{"date":"2023-10-03","kind":"metasploit","ref":"exploit/multi/http/torchserver_cve_2023_43654","stars":null,"title":"PyTorch Model Server Registration and Deserialization RCE"},{"date":"2026-02-05T22:06:07Z","kind":"github_poc","ref":"https://github.com/seal-sec-demo-2/yaml-payload","stars":0,"title":"SnakeYAML CVE-2022-1471 exploit payload for demo"},{"date":"2026-02-26T01:29:37Z","kind":"github_poc","ref":"https://github.com/jelee2555/CVE-2022-1471-attacker","stars":0,"title":"attacker "},{"date":"2026-06-01T09:33:10Z","kind":"github_poc","ref":"https://github.com/anupamojha-eng/sentinel-transitive-cve-demo","stars":0,"title":"Sentinel demo: transitive snakeyaml CVE-2022-1471 via Spring Boot + exploitable code pattern"},{"date":"2026-07-17T20:01:20Z","kind":"github_poc","ref":"https://github.com/seal-sec-demo-2/yaml-payload-2","stars":0,"title":"SnakeYAML CVE-2022-1471 exploit payload for Seal Security demos"},{"date":"2026-08-15T08:11:57Z","kind":"github_poc","ref":"https://github.com/aykhan019/cve-2022-1471-jira-lab","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Remote Code execution in SnakeYAML","id":"CVE-2022-1471","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"deserialization","year":"2022"},"n_packages":11,"n_references":11,"next":{"headline":"Better Find and Replace \u003c 1.3.6 - Admin+ SQLi","id":"CVE-2022-1472"},"packages":[{"ecosystem":"Maven","fixed":["2.0"],"introduced":["0"],"last_affected":[],"package":"org.yaml:snakeyaml","purl":null,"source":"GHSA-mjmj-j48q-9wg2"},{"ecosystem":"Maven","fixed":["2.0"],"introduced":["0"],"last_affected":[],"package":"org.yaml:snakeyaml","purl":"pkg:maven/org.yaml/snakeyaml","source":"GHSA-mjmj-j48q-9wg2"},{"ecosystem":"AlmaLinux:8","fixed":["0.12.0-9.el8_7"],"introduced":["0"],"last_affected":[],"package":"prometheus-jmx-exporter","purl":"pkg:rpm/almalinux/prometheus-jmx-exporter","source":"ALSA-2022:9058"},{"ecosystem":"AlmaLinux:8","fixed":["0.12.0-9.el8_7"],"introduced":["0"],"last_affected":[],"package":"prometheus-jmx-exporter-openjdk11","purl":"pkg:rpm/almalinux/prometheus-jmx-exporter-openjdk11","source":"ALSA-2022:9058"},{"ecosystem":"AlmaLinux:8","fixed":["0.12.0-9.el8_7"],"introduced":["0"],"last_affected":[],"package":"prometheus-jmx-exporter-openjdk17","purl":"pkg:rpm/almalinux/prometheus-jmx-exporter-openjdk17","source":"ALSA-2022:9058"},{"ecosystem":"AlmaLinux:8","fixed":["0.12.0-9.el8_7"],"introduced":["0"],"last_affected":[],"package":"prometheus-jmx-exporter-openjdk8","purl":"pkg:rpm/almalinux/prometheus-jmx-exporter-openjdk8","source":"ALSA-2022:9058"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.12.0-9.el8_7"],"introduced":["0"],"last_affected":[],"package":"prometheus-jmx-exporter","purl":"pkg:rpm/redhat/prometheus-jmx-exporter","source":"RHSA-2022:9058"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.12.0-9.el8_7"],"introduced":["0"],"last_affected":[],"package":"prometheus-jmx-exporter-openjdk11","purl":"pkg:rpm/redhat/prometheus-jmx-exporter-openjdk11","source":"RHSA-2022:9058"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.12.0-9.el8_7"],"introduced":["0"],"last_affected":[],"package":"prometheus-jmx-exporter-openjdk17","purl":"pkg:rpm/redhat/prometheus-jmx-exporter-openjdk17","source":"RHSA-2022:9058"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:0.12.0-9.el8_7"],"introduced":["0"],"last_affected":[],"package":"prometheus-jmx-exporter-openjdk8","purl":"pkg:rpm/redhat/prometheus-jmx-exporter-openjdk8","source":"RHSA-2022:9058"},{"ecosystem":"Rocky Linux:8","fixed":["0:0.12.0-9.el8_7"],"introduced":["0"],"last_affected":[],"package":"prometheus-jmx-exporter","purl":"pkg:rpm/rocky-linux/prometheus-jmx-exporter?distro=rocky-linux-8-x86-64\u0026epoch=0","source":"RLSA-2022:9058"}],"prev":{"headline":"Ultimate WooCommerce CSV Importer \u003c= 2.0 - Reflected Cross-Site Scripting","id":"CVE-2022-1470"},"products":["SnakeYAML"],"published":"2022-12-01","related":[{"cvss_score":6.5,"headline":"DoS in SnakeYAML","id":"CVE-2022-38752","kev_date_added":null,"published":"2022-09-05"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"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":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"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)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-06-18","vendors":["SnakeYAML"]},"summary":"Attackers can achieve remote code execution by providing malicious YAML content to applications using SnakeYAML's unsafe Constructor class.","url":"https://insights.sbomify.com/CVE-2022-1471/"}