{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-1471","id":"CVE-2022-1471","title":"Remote Code execution in SnakeYAML","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.","descriptionLong":"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.","published":"2022-12-01T10:47:07.203Z","updated":"2026-10-28T02:30:46.039435535Z","reserved":"2022-04-26T08:32:53.188Z","status":"Modified","rejected":false,"assigner":"Google","metric":{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","rating":"high","source":"Google"},"metrics":[{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","rating":"high","source":"Google"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","rating":"high","source":"google.com"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","rating":"high","source":"OSV"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","rating":"high","source":"GitHub"}],"rating":"high","products":["SnakeYAML"],"affectedProducts":[{"vendor":"SnakeYAML","product":"SnakeYAML","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"2.0","status":"affected","version":"0","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"org.yaml:snakeyaml","purl":"pkg:maven/org.yaml/snakeyaml","ranges":["<2.0"],"fixed":["2.0"],"advisory":"GHSA-mjmj-j48q-9wg2"}],"cwes":["CWE-20","CWE-502"],"aliases":["GHSA-mjmj-j48q-9wg2"],"references":[{"url":"https://github.com/google/security-research/security/advisories/GHSA-mjmj-j48q-9wg2","tags":["x_transferred","Exploit","Third Party Advisory","advisory","web"]},{"url":"https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in#comment-64581479","tags":["x_transferred","Issue Tracking","Third Party Advisory","web"]},{"url":"https://github.com/mbechler/marshalsec","tags":["x_transferred","Exploit","Third Party Advisory","package","web"]},{"url":"https://www.github.com/mbechler/marshalsec/blob/master/marshalsec.pdf?raw=true","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://groups.google.com/g/kubernetes-security-announce/c/mwrakFaEdnc","tags":["x_transferred","web"]},{"url":"https://security.netapp.com/advisory/ntap-20230818-0015/","tags":["x_transferred","advisory"]},{"url":"http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html","tags":["x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2023/11/19/1","tags":["x_transferred","web"]},{"url":"https://security.netapp.com/advisory/ntap-20240621-0006/","tags":["x_transferred","advisory"]},{"url":"https://infosecwriteups.com/%EF%B8%8F-inside-the-160-comment-fight-to-fix-snakeyamls-rce-default-1a20c5ca4d4c","tags":["web"]},{"url":"https://confluence.atlassian.com/security/cve-2022-1471-snakeyaml-library-rce-vulnerability-in-multiple-products-1296171009.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1471.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1471","tags":["advisory"]},{"url":"https://snyk.io/blog/unsafe-deserialization-snakeyaml-java-cve-2022-1471","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20240621-0006","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20230818-0015","tags":["web"]},{"url":"https://bitbucket.org/snakeyaml/snakeyaml/wiki/CVE-2022-1471","tags":["web"]},{"url":"https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in#comment-64876314","tags":["web"]},{"url":"https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in#comment-64634374","tags":["web"]},{"url":"https://bitbucket.org/snakeyaml/snakeyaml/commits/acc44099f5f4af26ff86b4e4e4cc1c874e2dc5c4","tags":["web"]},{"url":"https://bitbucket.org/snakeyaml/snakeyaml/commits/5014df1a36f50aca54405bb8433bc99a8847f758","tags":["web"]},{"url":"https://bitbucket.org/snakeyaml/snakeyaml","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.99501,"epssPercentile":0.99945,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-1471","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-1471","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-1471","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-mjmj-j48q-9wg2","ok":true,"note":"GHSA-mjmj-j48q-9wg2"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-1471","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":["EPSS 100% with CVSS 8.3"],"attention":null}