Remote code executionin SnakeYAML.
Weaponized: a Metasploit exploit is public.
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.
- Upgrade org.yaml:snakeyaml (Maven) to 2.0 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 26 Apr 2022CVE ID reserved by Google.
- 1 Dec 2022Published in the CVE List.
- 2 Mar 2023First public proof of concept on GitHub.
- 3 Oct 2023Metasploit module: PyTorch Model Server Registration and Deserialization RCE.
- 18 Jun 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Weaponized (Metasploit). CISA assessment (SSVC): exploitation poc.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other SnakeYAML vulnerabilities
Same weakness: Improper input validation
- github.com
- bitbucket.org
- github.com
- www.github.com
- groups.google.com
- security.netapp.com
- packetstormsecurity.com
- www.openwall.com
- security.netapp.com
- infosecwriteups.com
- confluence.atlassian.com
Patchminder. CVE-2022-1471: Remote code execution in SnakeYAML. https://patchminder.com/cve/cve-2022-1471/ (accessed 5 December 2026).