patchminder
Weaponized · Metasploit CVE-2022-1471

Remote code executionin SnakeYAML.

Published 1 Dec 2022 · Updated 18 Jun 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
High 8.3
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 99.5% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 2.0 or later
In plain words

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.

What to do now
  • Upgrade org.yaml:snakeyaml (Maven) to 2.0 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
SnakeYAML
2.0 and earlier
Not confirmed
CVE record
org.yaml:snakeyaml (Maven)
before 2.0
2.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 26 Apr 2022
    CVE ID reserved by Google.
  2. 1 Dec 2022
    Published in the CVE List.
  3. 2 Mar 2023
    First public proof of concept on GitHub.
  4. 3 Oct 2023
    Metasploit module: PyTorch Model Server Registration and Deserialization RCE.
  5. 18 Jun 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit). CISA assessment (SSVC): exploitation poc.

Metasploit module
1 module
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
8 repositories
GitHubno warning signs found1fabunicorn/SnakeYAML-CVE-2022-1471-POC8 stars · created 2 Mar 2023Code for veracode blog
GitHubno warning signs foundfalconkei/snakeyaml_cve_poc4 stars · created 8 May 2023SnakeYAML-CVE-2022-1471-POC
GitHubno warning signs foundseal-sec-demo-2/yaml-payload0 stars · created 5 Feb 2026SnakeYAML CVE-2022-1471 exploit payload for demo
GitHubno warning signs foundjelee2555/CVE-2022-1471-attacker0 stars · created 26 Feb 2026attacker
GitHubno warning signs foundanupamojha-eng/sentinel-transitive-cve-demo0 stars · created 1 Jun 2026Sentinel demo: transitive snakeyaml CVE-2022-1471 via Spring Boot + exploitable code pattern
GitHubno warning signs foundseal-sec-demo-2/yaml-payload-20 stars · created 17 Jul 2026SnakeYAML CVE-2022-1471 exploit payload for Seal Security demos
GitHubno warning signs foundaykhan019/cve-2022-1471-jira-lab0 stars · created 15 Aug 2026
GitHubno warning signs foundodysseas404/ITC4247-Final-Project-Security-analysis-of-the-Pippo-Java-web-framework0 stars · created 15 Nov 2026Security analysis of the Pippo Java web framework (CVE-2022-1471 / GHSA-v956-x5m6-xj62 SnakeYAML RCE) and an automated REST API security-testing tool. ITC 4247 Secure Software Development, Fall 2026.

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.

Related

Other SnakeYAML vulnerabilities

Same weakness: Improper input validation

All CWE-20 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-1471: Remote code execution in SnakeYAML. https://patchminder.com/cve/cve-2022-1471/ (accessed 5 December 2026).