CVEfocus › CVE database › CVE-2022-1471

CVE-2022-1471Remote Code execution in SnakeYAML

CVSS 8.3 HighEPSS 99.5% (in the top 1% of all CVEs)Published 2022-12-01Updated 2025-06-18Assigner: Google

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.

CWE-20

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

10Fixed
3Fix pending
8Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04snakeyamlWill 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.04snakeyamlWill 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.04snakeyamlFix pendingUBUNTU-CVE-2022-1471
Ubuntu 18.04snakeyamlFix pendingUBUNTU-CVE-2022-1471
Ubuntu 16.04snakeyamlWill 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.04snakeyamlFix pendingUBUNTU-CVE-2022-1471
Debian 14snakeyamlWill 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 13snakeyamlWill 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 12snakeyamlWill 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 8prometheus-jmx-exporterFixed0:0.12.0-9.el8_7RHSA-2022:9058
Red Hat Enterprise Linux 8prometheus-jmx-exporter-openjdk11Fixed0:0.12.0-9.el8_7RHSA-2022:9058
Red Hat Enterprise Linux 8prometheus-jmx-exporter-openjdk17Fixed0:0.12.0-9.el8_7RHSA-2022:9058
Red Hat Enterprise Linux 8prometheus-jmx-exporter-openjdk8Fixed0:0.12.0-9.el8_7RHSA-2022:9058
Red Hat Enterprise Linux 7snakeyamlWill not fix
Will not fix
Red Hat Enterprise Linux 7snakeyaml-javadocWill not fix
Will not fix
AlmaLinux 8prometheus-jmx-exporterFixed0.12.0-9.el8_7ALSA-2022:9058
AlmaLinux 8prometheus-jmx-exporter-openjdk11Fixed0.12.0-9.el8_7ALSA-2022:9058
AlmaLinux 8prometheus-jmx-exporter-openjdk17Fixed0.12.0-9.el8_7ALSA-2022:9058
AlmaLinux 8prometheus-jmx-exporter-openjdk8Fixed0.12.0-9.el8_7ALSA-2022:9058
Rocky Linux 8prometheus-jmx-exporterFixed0:0.12.0-9.el8_7RLSA-2022:9058
Maven libraryorg.yaml:snakeyamlFixed2.0GHSA-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.

References

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.