CVE-2022-1471Remote Code execution in SnakeYAML
- 8.3HighCVSS base score
- 99.5%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module for it. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits1
Metasploit modules1 module
- PyTorch Model Server Registration and Deserialization RCE (Metasploit module) (opens in a new tab)
exploit/multi/http/torchserver_cve_2023_43654Rank excellentdisclosed 3 Oct 2023
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By Google
- 7 months later
· 7 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GoogleCNA (assigner) | 3.1 | High8.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 99.5% · top 0.1% of all CVEs (12 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.3.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.yaml:snakeyamlGHSA-mjmj-j48q-9wg2 (opens in a new tab)
References
References11
- https://github.com/google/security-research/security/advisories/GHSA-mjmj-j48q-9wg2 (opens in a new tab)x_transferred
- https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in#comment-64581479 (opens in a new tab)x_transferred
- https://github.com/mbechler/marshalsec (opens in a new tab)x_transferred
- https://www.github.com/mbechler/marshalsec/blob/master/marshalsec.pdf?raw=true (opens in a new tab)x_transferred
- https://groups.google.com/g/kubernetes-security-announce/c/mwrakFaEdnc (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20230818-0015/ (opens in a new tab)x_transferred
- http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/11/19/1 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20240621-0006/ (opens in a new tab)x_transferred
- https://infosecwriteups.com/%EF%B8%8F-inside-the-160-comment-fight-to-fix-snakeyamls-rce-default-1a20c5ca4d4c (opens in a new tab)
- https://confluence.atlassian.com/security/cve-2022-1471-snakeyaml-library-rce-vulnerability-in-multiple-products-1296171009.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-7690 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-mjmj-j48q-9wg2 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2022-1471)Record last updated .