CVE-2022-1471
Remote Code execution in SnakeYAML
- Published
- Dec 1, 2022
- Updated
- Jun 18, 2025
- Assigning CNA
- Evidence observed
- Aug 7, 2026
Primary CVSS
nvd · CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HHigh · next 30 days
- Percentile
- 99.9%
- Model date
- Oct 17, 2026
EPSS is a statistical estimate, not a certainty or a measure of impact. Combine it with CVSS, KEV status, exposure and your environment.
Summary
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.
Sources
modules/exploits/multi/http/torchserver_cve_2023_43654.rb
Metasploit Framework modulesDeclared conditions
- platform: Java($.exploit_multi/http/torchserver_cve_2023_43654.platform)
- verification: check_declared($.exploit_multi/http/torchserver_cve_2023_43654.check)
Code for veracode blog
- cve-2022-1471-jira-labResearch
Offline CVE-2022-1471 lab: SnakeYAML unsafe deserialization to RCE; compares vulnerable 1.x vs fixed 2.x using a harmless local payload.
- yaml-payloadExploit
SnakeYAML CVE-2022-1471 exploit payload for demo
- yaml-payload-2Exploit
SnakeYAML CVE-2022-1471 exploit payload for Seal Security demos
SnakeYAML-CVE-2022-1471-POC
Sentinel demo: transitive snakeyaml CVE-2022-1471 via Spring Boot + exploitable code pattern
- CVE-2022-1471-attackerExploit
attacker
Responsible use
Use vulnerability information only on systems you own or are authorized to test. Kitploit links to public research metadata and does not store exploit code or malicious payloads.