CVE-2022-1471: Remote Code execution in SnakeYAML
Vulnerability summary
CVE-2022-1471 is a critical (CVSS 9.8) Improper Input Validation vulnerability in snakeyaml_project snakeyaml. EPSS estimates a 99.50% chance of exploitation in the next 30 days, higher than 99.9% of scored vulnerabilities. 3 public exploits are recorded.
Weaponized exploit (Metasploit, 03-10-2023)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 14 · Related 10Timeline
- 01-12-2022PublishedVulnerability first disclosed.
- 18-06-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 8 sources · 1 version- CVE.orgCNA8.3HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:LDiffers
- OSV · Red hatEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.3HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:LDiffers
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.3HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:LDiffers
- OSV · ChainguardEcosystem advisory · calculated8.3HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:LDiffers
- OSV · MavenEcosystem advisory · calculated8.3HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:LDiffers
EPSS trend
Probability
99.50%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
Decrease -0.07 pp
From 99.57% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
3 foundSecurity Research
Maturity: poc
Marshalsec
Maturity: poc
PyTorch Model Server Registration and Deserialization RCE
exploit/multi/http/torchserver_cve_2023_43654
Maturity: weaponized
Weaknesses
CWE · root cause- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- CWE-502Deserialization of Untrusted DataThe product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.
Affected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard145 products
- cassandra-4.0All versions (No fix recorded)
- cassandra-4.1All versions (No fix recorded)
- cassandra-4.1-compatAll versions (No fix recorded)
- cassandra-4.1-iamguarded-compatAll versions (No fix recorded)
- cassandra-5.0All versions (No fix recorded)
Wolfi13 products
- cassandra-4.1All versions (No fix recorded)
- cassandra-4.1-compatAll versions (No fix recorded)
- cassandra-5.0All versions (No fix recorded)
- cassandra-5.0-compatAll versions (No fix recorded)
- cassandra-5.0-entrypoint-compatAll versions (No fix recorded)
Redhat4 products
- prometheus-jmx-exporter< 0:0.12.0-9.el8_7
- prometheus-jmx-exporter-openjdk11< 0:0.12.0-9.el8_7
- prometheus-jmx-exporter-openjdk17< 0:0.12.0-9.el8_7
- prometheus-jmx-exporter-openjdk8< 0:0.12.0-9.el8_7
Debian1 product
- snakeyamlAll versions (No fix recorded)
Org.yaml1 product
- snakeyaml< 2.0
Snakeyaml1 product
- snakeyaml≤ 2.0
Snakeyaml_project1 product
- snakeyaml< 2.0
Ubuntu1 product
- snakeyamlAll versions (No fix recorded)
8 vendors · 167 products
References
30 links- github.com/google/security-research/security/advisories/GHSA-mjmj-j48q-9wg2ARTICLEREPORTAdvisoryWEBExploitThird Party Advisory
- bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-inWEBIssue TrackingThird Party Advisory
- www.github.com/mbechler/marshalsec/blob/master/marshalsec.pdf?raw=trueWEBExploitThird Party Advisory