Back
CVE-2022-1471
Remote Code execution in SnakeYAML
High8.3EPSS 99.5%
- Published
- Updated
- Reserved
- Assigned by
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GoogleCNA (assigner) | 3.1 | High8.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 99.5% · top 0.1% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: total
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.3.
Weakness
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.yaml:snakeyamlGHSA-mjmj-j48q-9wg2 (opens in a new tab)
References (11)
- https://github.com/google/security-research/security/advisories/GHSA-mjmj-j48q-9wg2 (opens in a new tab)x_transferred
- https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in#comment-64581479 (opens in a new tab)x_transferred
- https://github.com/mbechler/marshalsec (opens in a new tab)x_transferred
- https://www.github.com/mbechler/marshalsec/blob/master/marshalsec.pdf?raw=true (opens in a new tab)x_transferred
- https://groups.google.com/g/kubernetes-security-announce/c/mwrakFaEdnc (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20230818-0015/ (opens in a new tab)x_transferred
- http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/11/19/1 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20240621-0006/ (opens in a new tab)x_transferred
- https://infosecwriteups.com/%EF%B8%8F-inside-the-160-comment-fight-to-fix-snakeyamls-rce-default-1a20c5ca4d4c (opens in a new tab)
- https://confluence.atlassian.com/security/cve-2022-1471-snakeyaml-library-rce-vulnerability-in-multiple-products-1296171009.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-mjmj-j48q-9wg2 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-1471)Record last updated .