{"id":"CVE-2022-1471","published":"2022-12-01T10:47:07Z","modified":"2025-06-18T08:32:58Z","title":"Remote Code execution in SnakeYAML","vendor":"SnakeYAML","product":"SnakeYAML","tier":"core","eol":null,"affectedVersions":[{"vendor":"SnakeYAML","product":"SnakeYAML","versions":["<= 2.0"]}],"capec":[{"id":"CAPEC-253","name":"Remote Code Inclusion"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-08-07T18:13:22.155371Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"SnakeYAML's Constructor class fails to restrict which types can be instantiated during YAML deserialization, flaw that lives in the library's core parsing component. An attacker who can supply YAML content that the application deserializes, with low privileges and no user interaction over the network, can achieve remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:11:49Z"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.99501,"percentile":0.99946,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2026-10-26","exploitedFirstSeen":null,"ransomware":false,"evidence":[],"evidenceTotal":0,"provenance":"source"},"exploited":true,"otx":{"pulseCount":7,"pulses":[{"name":"CVE-2026-21589 Atlassian Pre-Auth File Read — Active Exploitation after PoC","url":"https://otx.alienvault.com/pulse/6ac732ab1f27e95b51fdc402","created":"2026-10-08"},{"name":"ACTUALIZACION | IBM Cognos Analytics has addressed multiple vulnerabilities","url":"https://otx.alienvault.com/pulse/65da2e10a6bc9c007c0c0e32","created":"2024-02-24"},{"name":"ACTUALIZACION | Oracle Critical Patch Update Advisory - January 2024","url":"https://otx.alienvault.com/pulse/65c0fd55c5d3c780a06aa227","created":"2024-02-05"},{"name":"ACTUALIZACION |  IBM UrbanCode Build 6.1.7.10 addresses multiple vulnerabilities.","url":"https://otx.alienvault.com/pulse/653ddf2064c48ed4c86a8c6f","created":"2023-10-29"},{"name":"ACTUALIZACION | Important: Red Hat support for Spring Boot 2.7.13 security update","url":"https://otx.alienvault.com/pulse/64de4b9811c31a3894fe78cb","created":"2023-08-17"},{"name":"ACTUALIZACION | Oracle Critical Patch Update Advisory - July 2023","url":"https://otx.alienvault.com/pulse/64bace8d5d470a6a7baaa8a9","created":"2023-07-21"},{"name":"ACTUALIZACION | Red Hat build of Eclipse Vert.x 4.3.4 security update","url":"https://otx.alienvault.com/pulse/639b26a907bdc943d7190917","created":"2022-12-15"}],"provenance":"machine"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/google/security-research/security/advisories/GHSA-mjmj-j48q-9wg2","tags":[]},{"url":"https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in#comment-64581479","tags":[]},{"url":"https://github.com/mbechler/marshalsec","tags":[]},{"url":"https://www.github.com/mbechler/marshalsec/blob/master/marshalsec.pdf?raw=true","tags":[]},{"url":"https://groups.google.com/g/kubernetes-security-announce/c/mwrakFaEdnc","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20230818-0015/","tags":[]},{"url":"http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2023/11/19/1","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20240621-0006/","tags":[]},{"url":"https://infosecwriteups.com/%EF%B8%8F-inside-the-160-comment-fight-to-fix-snakeyamls-rce-default-1a20c5ca4d4c","tags":[]},{"url":"https://confluence.atlassian.com/security/cve-2022-1471-snakeyaml-library-rce-vulnerability-in-multiple-products-1296171009.html","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Maven","package":"org.yaml:snakeyaml","vulnerableRanges":["<2.0"],"patched":["2.0"],"from":["GHSA-mjmj-j48q-9wg2"],"provenance":"source"}],"advisories":[{"id":"GHSA-mjmj-j48q-9wg2","url":"https://github.com/advisories/GHSA-mjmj-j48q-9wg2","severity":"HIGH","ecosystem":"Maven","package":"org.yaml:snakeyaml","vulnerableRanges":["<2.0"],"patched":["2.0"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2022-7690","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-7690","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":6,"skipped":1,"earliest":"2023-03-02","earliestUrl":"https://github.com/1fabunicorn/SnakeYAML-CVE-2022-1471-POC","repos":[{"name":"1fabunicorn/SnakeYAML-CVE-2022-1471-POC","url":"https://github.com/1fabunicorn/SnakeYAML-CVE-2022-1471-POC","stars":8,"created":"2023-03-02"},{"name":"falconkei/snakeyaml_cve_poc","url":"https://github.com/falconkei/snakeyaml_cve_poc","stars":4,"created":"2023-05-08"},{"name":"seal-sec-demo-2/yaml-payload","url":"https://github.com/seal-sec-demo-2/yaml-payload","stars":0,"created":"2026-02-05"},{"name":"jelee2555/CVE-2022-1471-attacker","url":"https://github.com/jelee2555/CVE-2022-1471-attacker","stars":0,"created":"2026-02-26"},{"name":"anupamojha-eng/sentinel-transitive-cve-demo","url":"https://github.com/anupamojha-eng/sentinel-transitive-cve-demo","stars":0,"created":"2026-06-01"}]},"metasploit":[{"name":"PyTorch Model Server Registration and Deserialization RCE","module":"exploit/multi/http/torchserver_cve_2023_43654","type":"exploit","disclosureDate":"2023-10-03","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/torchserver_cve_2023_43654.rb"}],"first":{"date":"2023-03-02","source":"PoC-in-GitHub","url":"https://github.com/1fabunicorn/SnakeYAML-CVE-2022-1471-POC"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html"],"flow":[],"timeline":[{"date":"2022-12-01","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2022-1471","provenance":"source"},{"date":"2023-03-02","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub; later: Metasploit 2023-10-03","url":"https://github.com/1fabunicorn/SnakeYAML-CVE-2022-1471-POC","provenance":"source"}],"speed":{"daysToPublicExploit":91,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":77.8,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":10.0,"detail":"added 26 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.99,"detail":"percentile 0.9995"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 NVD exploit link; 6 PoC-in-GitHub repos; 1 Metasploit module"},{"name":"Mentioned in OTX pulses","points":2.05,"detail":"7 pulses"},{"name":"CVSS severity","points":5.81,"detail":"base score 8.3"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}