CVE-2022-1471
CVE-2022-1471 · Remote Code execution in SnakeYAML
CVSS 8.3 · High · EPSS 99.5% · Public exploit
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- snakeyamlNo fix published
- snakeyaml Debian 12No fix published
- snakeyaml Debian 13No fix published
- snakeyaml Debian 14No fix published
- and 6 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="snakeyaml"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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
- Updated
Fixes in distributions
- RHSA-2023:0777 · Red Hat openshift 4.9 el8 ·
- RHSA-2025:1747 · Red Hat jboss enterprise application platform eus 7.3 el7 ·
- RHSA-2025:1746 · Red Hat jboss enterprise application platform eus 7.1 el7 ·
- RHSA-2023:6171 · Red Hat ocp tools 4.11 el8 ·
- RHSA-2023:3198 · Red Hat ocp tools 4.11 el8 ·
- RHSA-2023:2097 · Red Hat satellite 6.13 el8, Red Hat satellite capsule 6.13 el8, Red Hat satellite maintenance 6.13 el8, Red Hat satellite utils 6.13 el8 ·
- RHSA-2023:1043 · Red Hat red hat single sign on 7.6 el7 ·
- RHSA-2024:0775 · Red Hat ocp tools 4.11 el8 ·
- RHSA-2023:1044 · Red Hat red hat single sign on 7.6 el8 ·
- RHSA-2023:1514 · Red Hat jboss enterprise application platform 7.4 el9 ·
- RHSA-2023:1045 · Red Hat red hat single sign on 7.6 el9 ·
- RHSA-2023:1513 · Red Hat jboss enterprise application platform 7.4 el8 ·
- RHSA-2023:0697 · Red Hat openshift 4.10 el8 ·
- RHSA-2023:1512 · Red Hat jboss enterprise application platform 7.4 el7 ·
- RHSA-2022:9058 · Red Hat Enterprise Linux 8 appstream ·
- RLSA-2022:9058 · Rocky Linux 8 ·
- ALSA-2022:9058 · AlmaLinux 8 ·
Stack: system
Affected products and versions
snakeyaml
- Versions
- ≥ 0, ≤ 2.0: Affected (custom)
No fix published
snakeyaml Debian 12
- Versions
- 1.33-2
- 2.0+ds+really1.33-1
- 2.0+ds-1
- 2.4+ds-1~exp0
- 2.5+ds-1
- 2.5+ds-1~exp0
All versions (7)
- 2.6-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
snakeyaml Debian 13
- Versions
- 2.0+ds+really1.33-1
- 2.4+ds-1~exp0
- 2.5+ds-1
- 2.5+ds-1~exp0
- 2.6-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
snakeyaml Debian 14
- Versions
- 2.0+ds+really1.33-1
- 2.4+ds-1~exp0
- 2.5+ds-1
- 2.5+ds-1~exp0
- 2.6-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
snakeyaml Ubuntu Pro 14.04 LTS
- Versions
- 1.12-2
- 1.12-2ubuntu0.14.04.1~esm1
- 1.12-2ubuntu0.14.04.1~esm2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
snakeyaml Ubuntu Pro 16.04 LTS
- Versions
- 1.12-2
- 1.12-2ubuntu0.16.04.1~esm1
- 1.12-2ubuntu0.16.04.1~esm2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
snakeyaml Ubuntu Pro 18.04 LTS
- Versions
- 1.17-1
- 1.19-1
- 1.20-1
- 1.23-1~18.04
- 1.23-1+deb10u1build0.18.04.1
- 1.23-1+deb10u1ubuntu0.1~esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
snakeyaml Ubuntu Pro 20.04 LTS
- Versions
- 1.23-1
- 1.25+ds-2
- 1.25+ds-2ubuntu0.1
- 1.25+ds-2ubuntu0.1+esm1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
snakeyaml Ubuntu 22.04 LTS
- Versions
- 1.28-1
- 1.29-1
- 1.29-1ubuntu0.22.04.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
snakeyaml Ubuntu 24.04 LTS
- Versions
- 1.33-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2022-1471