CVE-2022-1471Remote Code execution in SnakeYAML
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.
What to do
Likely to be exploited: EPSS gives a 100% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from AlmaLinux, Maven, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | snakeyaml | Will not fix upstream bug report declares this a documentation issue A secure by default change was made in version 2.0, but the version is not backwards compatible and… | UBUNTU-CVE-2022-1471 | |
| Ubuntu 22.04 | snakeyaml | Will not fix upstream bug report declares this a documentation issue A secure by default change was made in version 2.0, but the version is not backwards compatible and… | UBUNTU-CVE-2022-1471 | |
| Ubuntu 20.04 | snakeyaml | Fix pending | UBUNTU-CVE-2022-1471 | |
| Ubuntu 18.04 | snakeyaml | Fix pending | UBUNTU-CVE-2022-1471 | |
| Ubuntu 16.04 | snakeyaml | Will not fix upstream bug report declares this a documentation issue A secure by default change was made in version 2.0, but the version is not backwards compatible and… | UBUNTU-CVE-2022-1471 | |
| Ubuntu 14.04 | snakeyaml | Fix pending | UBUNTU-CVE-2022-1471 | |
| Debian 14 | snakeyaml | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2022-1471 | |
| Debian 13 | snakeyaml | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2022-1471 | |
| Debian 12 | snakeyaml | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2022-1471 | |
| Red Hat Enterprise Linux 8 | prometheus-jmx-exporter | Fixed | 0:0.12.0-9.el8_7 | RHSA-2022:9058 |
| Red Hat Enterprise Linux 8 | prometheus-jmx-exporter-openjdk11 | Fixed | 0:0.12.0-9.el8_7 | RHSA-2022:9058 |
| Red Hat Enterprise Linux 8 | prometheus-jmx-exporter-openjdk17 | Fixed | 0:0.12.0-9.el8_7 | RHSA-2022:9058 |
| Red Hat Enterprise Linux 8 | prometheus-jmx-exporter-openjdk8 | Fixed | 0:0.12.0-9.el8_7 | RHSA-2022:9058 |
| Red Hat Enterprise Linux 7 | snakeyaml | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | snakeyaml-javadoc | Will not fix Will not fix | ||
| AlmaLinux 8 | prometheus-jmx-exporter | Fixed | 0.12.0-9.el8_7 | ALSA-2022:9058 |
| AlmaLinux 8 | prometheus-jmx-exporter-openjdk11 | Fixed | 0.12.0-9.el8_7 | ALSA-2022:9058 |
| AlmaLinux 8 | prometheus-jmx-exporter-openjdk17 | Fixed | 0.12.0-9.el8_7 | ALSA-2022:9058 |
| AlmaLinux 8 | prometheus-jmx-exporter-openjdk8 | Fixed | 0.12.0-9.el8_7 | ALSA-2022:9058 |
| Rocky Linux 8 | prometheus-jmx-exporter | Fixed | 0:0.12.0-9.el8_7 | RLSA-2022:9058 |
| Maven library | org.yaml:snakeyaml | Fixed | 2.0 | GHSA-mjmj-j48q-9wg2 |
What the vendor says
As published in the CVE record by Google, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- SnakeYAML: affected: up to 2.0
References
- https://github.com/google/security-research/security/advisories/GHSA-mjmj-j48q-9wg2
- https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in#comment-64581479
- https://github.com/mbechler/marshalsec
- https://www.github.com/mbechler/marshalsec/blob/master/marshalsec.pdf?raw=true
- https://groups.google.com/g/kubernetes-security-announce/c/mwrakFaEdnc
- https://security.netapp.com/advisory/ntap-20230818-0015/
- http://packetstormsecurity.com/files/175095/PyTorch-Model-Server-Registration-Deserialization-Remote-Code-Execution.html
- http://www.openwall.com/lists/oss-security/2023/11/19/1
- 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
- https://confluence.atlassian.com/security/cve-2022-1471-snakeyaml-library-rce-vulnerability-in-multiple-products-1296171009.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.