Deserialization in Snakeyaml
CVE-2022-1471
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.
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.3 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L.
EPSS exploit prediction
EPSS: 0.996 (99.9th percentile), scored .
Very high probability of exploitation in the next 30 days — among the top 0.1% most-likely-to-be-exploited CVEs. 100th percentile — 99.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.996 · newest: 0.996 · change: 0.000
Affected products
- Snakeyaml — versions 0
- Snakeyaml Project
Weakness classification (CWE)
Public proof-of-concept exploits
- 1fabunicorn/SnakeYAML-CVE-2022-1471-POC
- falconkei/snakeyaml_cve_poc
- aykhan019/cve-2022-1471-jira-lab
- seal-sean-org/seans-surf-and-skate
- seal-sec-demo-2/yaml-payload-2
- seal-sean-org/yaml-payload
- seal-sec-demo-2/Java-Example
- anupamojha-eng/sentinel-transitive-cve-demo
- jelee2555/CVE-2022-1471-attacker
- seal-sec-demo-2/yaml-payload
References
- github.com/google/security-research/security/advisories/GHSA-mjmj-j48q-9wg2 (Exploit, Third Party Advisory)
- bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in (Third Party Advisory, Issue Tracking)
- github.com/mbechler/marshalsec (Exploit, Third Party Advisory)
- www.github.com/mbechler/marshalsec/blob/master/marshalsec.pdf (Exploit, Third Party Advisory)
- groups.google.com/g/kubernetes-security-announce/c/mwrakFaEdnc
- security.netapp.com/advisory/ntap-20230818-0015/
- packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserial…
- www.openwall.com/lists/oss-security/2023/11/19/1
- security.netapp.com/advisory/ntap-20240621-0006/
- infosecwriteups.com/️-inside-the-160-comment-fight-to-fix-snakeyamls-rce-defaul…
Frequently asked questions
- What is CVE-2022-1471?
- CVE-2022-1471 is a high-severity vulnerability in Snakeyaml, classified under Improper Input Validation. CVSS score: 8.3/10. Published 2022-12-01.
- How severe is CVE-2022-1471?
- High severity. CVSS v3 base score is 8.3 out of 10.
- Is CVE-2022-1471 known to be exploited?
- 47 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.