CVE-2022-1471
CRITICAL 9.8CVSS 3.1SnakeYaml Constructor Deserialization Remote Code Execution
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.
- Published
- 1 Dec 2022
- Last modified
- 10 Sep 2026
- Assigned by
- cve-coordination@google.com
- NVD status
- Modified
- Weakness
- CWE-20CWE-502
- Also known as
- GHSA-mjmj-j48q-9wg2
- Sources
- NVDJSONOSV GHSA-mjmj-j48q-9wg2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | cve-coordination@google.com (Secondary) | CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 8.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | snakeyaml_project | snakeyamlcpe:2.3:a:snakeyaml_project:snakeyaml:*:*:*:*:*:*:*:* |
< 2.0 | 2.0 |
| OSV | Maven | org.yaml:snakeyaml | < 2.0 | 2.0 |
References
- http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html · WEB
- http://www.openwall.com/lists/oss-security/2023/11/19/1 · WEB
- https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in#comment-64581479 · Issue Tracking, Third Party Advisory, WEB
- https://confluence.atlassian.com/security/cve-2022-1471-snakeyaml-library-rce-vulnerability-in-multiple-products-1296171009.html · WEB
- https://github.com/google/security-research/security/advisories/GHSA-mjmj-j48q-9wg2 · Exploit, Third Party Advisory, WEB
- https://github.com/mbechler/marshalsec · Exploit, Third Party Advisory, WEB
- https://groups.google.com/g/kubernetes-security-announce/c/mwrakFaEdnc · WEB
- https://infosecwriteups.com/%EF%B8%8F-inside-the-160-comment-fight-to-fix-snakeyamls-rce-default-1a20c5ca4d4c · WEB
- https://security.netapp.com/advisory/ntap-20230818-0015/ · WEB
- https://security.netapp.com/advisory/ntap-20240621-0006/ · WEB
- https://www.github.com/mbechler/marshalsec/blob/master/marshalsec.pdf?raw=true · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-1471 · ADVISORY
- https://snyk.io/blog/unsafe-deserialization-snakeyaml-java-cve-2022-1471 · WEB
- https://bitbucket.org/snakeyaml/snakeyaml/wiki/CVE-2022-1471 · WEB
- https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in#comment-64876314 · WEB
- https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in#comment-64634374 · WEB
- https://bitbucket.org/snakeyaml/snakeyaml/commits/acc44099f5f4af26ff86b4e4e4cc1c874e2dc5c4 · WEB
- https://bitbucket.org/snakeyaml/snakeyaml/commits/5014df1a36f50aca54405bb8433bc99a8847f758 · WEB
- https://bitbucket.org/snakeyaml/snakeyaml · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 1 Dec 2022)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 12 Dec 2022)