# CVE-2022-1471: Remote Code execution in SnakeYAML

- Severity: High 8.3 (CVSS:3.1, scored by Google) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 99.5%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 4 links below, marked "exploit"
- Published: 2022-12-01T10:47:07.203Z
- Modified: 2026-09-10T03:49:50.365Z
- Also known as: GHSA-mjmj-j48q-9wg2
- Weaknesses: CWE-20, CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: Google

## 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.

(As written by CVE List.)

## Affected

- SnakeYAML SnakeYAML: up to 2.0
- org.yaml:snakeyaml (Maven): before 2.0
- snakeyaml_project snakeyaml: before 2.0

## Every score

- Google: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L`
- GitHub: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <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://www.github.com/mbechler/marshalsec/blob/master/marshalsec.pdf?raw=true> (exploit, third-party-advisory, web)
- <http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html> (exploit, web)
- <https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in#comment-64581479> (issue-tracking, third-party-advisory, web)
- <https://groups.google.com/g/kubernetes-security-announce/c/mwrakFaEdnc> (web)
- <https://security.netapp.com/advisory/ntap-20230818-0015/>
- <http://www.openwall.com/lists/oss-security/2023/11/19/1> (web)
- <https://security.netapp.com/advisory/ntap-20240621-0006/>
- <https://infosecwriteups.com/%EF%B8%8F-inside-the-160-comment-fight-to-fix-snakeyamls-rce-default-1a20c5ca4d4c> (web)
- <https://confluence.atlassian.com/security/cve-2022-1471-snakeyaml-library-rce-vulnerability-in-multiple-products-1296171009.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-1471> (advisory)
- <https://snyk.io/blog/unsafe-deserialization-snakeyaml-java-cve-2022-1471> (web)
- <https://security.netapp.com/advisory/ntap-20240621-0006> (web)
- <https://security.netapp.com/advisory/ntap-20230818-0015> (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)

## Sources

- CVE List: [CVE-2022-1471](https://www.cve.org/CVERecord?id=CVE-2022-1471), CVE Terms of Use, modified 2025-06-18
- GitHub Advisory Database: [GHSA-mjmj-j48q-9wg2](https://github.com/advisories/GHSA-mjmj-j48q-9wg2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2022-1471](https://nvd.nist.gov/vuln/detail/CVE-2022-1471), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-1471 · Whole record: https://cve.day/CVE-2022-1471.json · Rebuilt by cve.day 2026-11-25T22:58:17.156Z
