CVE-2022-1471

HIGH LAB

PyTorch Model Server Registration and Deserialization RCE

Title source: metasploit
STIX 2.1

Exploitation Summary

EIP tracks 10 public exploits for CVE-2022-1471. PoCs published by 1fabunicorn, JAckLosingHeart, falconkei, including Metasploit module exploits/multi/http/torchserver_cve_2023_43654.

AI-analyzed exploit summary This PoC demonstrates CVE-2022-1471, a deserialization vulnerability in SnakeYAML 1.33, allowing arbitrary code execution via crafted YAML input. The exploit triggers a network request to a controlled server, proving the vulnerability.

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.

Exploits (10)

nomisec WORKING POC 8 stars
by 1fabunicorn · poc
https://github.com/1fabunicorn/SnakeYAML-CVE-2022-1471-POC

This PoC demonstrates CVE-2022-1471, a deserialization vulnerability in SnakeYAML 1.33, allowing arbitrary code execution via crafted YAML input. The exploit triggers a network request to a controlled server, proving the vulnerability.

Classification
Working Poc 95%
Attack Type
Deserialization
Complexity
Trivial
Reliability
Reliable
Target: SnakeYAML 1.33
No auth needed
Prerequisites: SnakeYAML 1.33 dependency · ability to deliver malicious YAML input
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
github WORKING POC 5 stars
by JAckLosingHeart · javapoc
https://github.com/JAckLosingHeart/CVE-PoC-Collection/tree/main/snakeyaml-CVE-2022-1471

This repository contains functional exploit code for multiple CVEs, including deserialization and RCE vulnerabilities in Java-based software. The PoCs are well-structured and include actual exploit code for vulnerabilities like CVE-2022-42889 (commons-text), CVE-2023-23638 (dubbo), and others.

Classification
Working Poc 95%
Attack Type
Rce | Deserialization
Complexity
Moderate
Reliability
Reliable
Target: Apache Commons Text, Apache Dubbo, Fastjson, Jackson, Log4j, MySQL
No auth needed
Prerequisites: Java environment · vulnerable version of target software
mistral-large-3 · analyzed Feb 27, 2026 Full analysis →
nomisec WORKING POC 4 stars
by falconkei · poc
https://github.com/falconkei/snakeyaml_cve_poc

This repository contains a proof-of-concept exploit for CVE-2022-1471, demonstrating deserialization vulnerabilities in SnakeYAML. The PoC includes a web server that serializes and deserializes YAML payloads, with instructions to trigger an HTTP GET request to an attacker-controlled server.

Classification
Working Poc 90%
Attack Type
Deserialization
Complexity
Moderate
Reliability
Reliable
Target: SnakeYAML (versions affected by CVE-2022-1471)
No auth needed
Prerequisites: Network access to the target server · Ability to send crafted YAML payloads
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by seal-sean-org · poc
https://github.com/seal-sean-org/yaml-payload

This repository contains a functional exploit for CVE-2022-1471, a SnakeYAML deserialization vulnerability. The exploit leverages Java's ScriptEngineManager to load a malicious ScriptEngineFactory, which injects a Tomcat Valve via reflection to hijack HTTP responses and achieve remote code execution (RCE).

Classification
Working Poc 99%
Attack Type
Deserialization
Complexity
Moderate
Reliability
Reliable
Target: SnakeYAML (versions vulnerable to CVE-2022-1471)
No auth needed
Prerequisites: Target application uses SnakeYAML's unsafe `Yaml.load()` on untrusted input · Target environment runs a Spring Boot/Tomcat application (for Valve injection) or allows outbound HTTP (for fallback server)
mistral-large-3 · analyzed Jul 18, 2026 Full analysis →
nomisec WORKING POC
by seal-sean-org · poc
https://github.com/seal-sean-org/seans-surf-and-skate

This repository demonstrates CVE-2022-1471, a SnakeYAML deserialization vulnerability leading to arbitrary object instantiation. The PoC includes a Spring Boot application with a vulnerable endpoint (`/`) that parses untrusted YAML input via `Yaml.load()`, enabling remote code execution when a malicious payload is submitted.

Classification
Working Poc 98%
Attack Type
Deserialization
Complexity
Moderate
Reliability
Reliable
Target: SnakeYAML 1.33 (via Spring Boot application)
No auth needed
Prerequisites: Target must use SnakeYAML 1.33 (unpatched) · Attacker must craft a YAML payload with a malicious class (e.g., `ScriptEngineManager` with a remote JAR)
mistral-large-3 · analyzed Jul 18, 2026 Full analysis →
nomisec WORKING POC
by seal-sec-demo-2 · poc
https://github.com/seal-sec-demo-2/Java-Example

This repository demonstrates CVE-2022-1471, a YAML deserialization vulnerability in SnakeYAML 1.33 that allows arbitrary object instantiation leading to remote code execution (RCE). The PoC includes a Spring Boot web application that processes user-controlled YAML input, triggering the vulnerability when a malicious payload (e.g., `!!javax.script.ScriptEngineManager`) is provided.

Classification
Working Poc 98%
Attack Type
Deserialization
Complexity
Trivial
Reliability
Reliable
Target: SnakeYAML 1.33
No auth needed
Prerequisites: User-controlled YAML input parsed by SnakeYAML 1.33 · No authentication required for the vulnerable endpoint
mistral-large-3 · analyzed Jul 14, 2026 Full analysis →
nomisec WORKING POC
by anupamojha-eng · poc
https://github.com/anupamojha-eng/sentinel-transitive-cve-demo

This repository demonstrates multiple CVEs, including CVE-2022-1471 (SnakeYAML deserialization RCE), CVE-2022-42003 (Jackson polymorphic deserialization), and CVE-2022-42889 (Text4Shell). It includes functional exploit code for these vulnerabilities in a Spring Boot application.

Classification
Working Poc 95%
Attack Type
Deserialization
Complexity
Moderate
Reliability
Reliable
Target: Spring Boot applications using vulnerable versions of SnakeYAML, Jackson, and Apache Commons Text
No auth needed
Prerequisites: Network access to the target application · Ability to send crafted YAML/JSON payloads to vulnerable endpoints
mistral-large-3 · analyzed Jun 01, 2026 Full analysis →
nomisec WORKING POC
by seal-sec-demo-2 · poc
https://github.com/seal-sec-demo-2/yaml-payload

This is a functional PoC for CVE-2022-1471, a SnakeYAML deserialization vulnerability. It exploits unsafe Yaml.load() to inject a Tomcat Valve or start a standalone HTTP server, replacing the target application with a 'PWNED' page.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Applications using SnakeYAML with unsafe Yaml.load() (e.g., Spring Boot)
No auth needed
Prerequisites: Target application must use SnakeYAML's unsafe Yaml.load() · Network access to load remote JAR payload
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →
metasploit WORKING POC EXCELLENT
by Idan Levcovich, Guy Kaplan, Gal Elbaz, Swapneil Kumar Dash, Spencer McIntyre · rubypocjava
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/torchserver_cve_2023_43654.rb

This Metasploit module exploits a chain of vulnerabilities in PyTorch TorchServe, including CVE-2023-43654 (SSRF in model registration) and CVE-2022-1471 (SnakeYAML deserialization RCE), to achieve unauthenticated remote code execution by registering a malicious MAR file containing a crafted YAML payload.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: PyTorch TorchServe < 8.0.2
No auth needed
Prerequisites: Network access to the TorchServe management interface (default port 8081) · Target running a vulnerable version of TorchServe
mistral-large-3 · analyzed Apr 24, 2026 Full analysis →

Scores

CVSS v3 8.3
EPSS 0.9957
EPSS Percentile 99.9%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact total

Details

CWE
CWE-20 CWE-502
Status published
Products (2)
org.yaml/snakeyaml 0 - 2.0Maven
snakeyaml_project/snakeyaml < 2.0
Published Dec 01, 2022
Tracked Since Feb 18, 2026