Skip to main content
← All vulnerabilities
CVE-2022-1471GHSA-MJMJ-J48Q-9WG2

Remote Code execution in SnakeYAML

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0
1 Metasploit module, 7 proofs of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • SnakeYAML SnakeYAML

    through 2.0

  • org.yaml:snakeyamlMaven

    fixed in 2.0

References 19

GitHub · google/security-research

bitbucket.org

GitHub · mbechler/marshalsec

groups.google.com

security.netapp.com

packetstormsecurity.com

openwall.com

infosecwriteups.com

confluence.atlassian.com

GitHub · rapid7/metasploit-framework

GitHub · 1fabunicorn/SnakeYAML-CVE-2022-1471-POC

GitHub · anupamojha-eng/sentinel-transitive-cve-demo

GitHub · aykhan019/cve-2022-1471-jira-lab

GitHub · falconkei/snakeyaml_cve_poc

GitHub · jelee2555/CVE-2022-1471-attacker

GitHub · seal-sec-demo-2/yaml-payload

GitHub · seal-sec-demo-2/yaml-payload-2