Vulnerabilities / CVE-2022-1471

critical

CVE-2022-1471

SnakeYaml: Constructor Deserialization Remote Code Execution

Published Modified CWE 20, 502
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA8.3CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
Red Hat9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high), Red Hat (high), AlmaLinux (high), Oracle (high), Rocky Linux (high).

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.

Affected packages and fixed versions

SourcePackageFixed in
alma 8prometheus-jmx-exporter, prometheus-jmx-exporter-openjdk11, prometheus-jmx-exporter-openjdk17 and 1 more0.12.0-9.el8_7
chainguardcassandra-4.0, cassandra-4.1, cassandra-5.0 and 13 more0 and 6 more
debian 11snakeyamlno fix listed
debian 12snakeyamlno fix listed
debian 13snakeyamlno fix listed
debian 14snakeyamlno fix listed
echosnakeyamlno fix listed
echo maven::Echo OSVorg.yaml:snakeyaml2.0
maven::GitHub Security Advisory Mavenorg.yaml:snakeyaml2.0
minimosapache-druid, apache-druid-fips, cdc-apache-cassandra-5.0 and 3 more37.0.0-r1 and 3 more
Oracle Linux 8prometheus-jmx-exporter, prometheus-jmx-exporter-openjdk11, prometheus-jmx-exporter-openjdk17 and 1 more0.12.0-9.el8_7
rapidfort amazon linux 2023snakeyamlno fix listed
Show all 60 entries from 19 sources
SourcePackageFixed in
alma 8prometheus-jmx-exporter0.12.0-9.el8_7
alma 8prometheus-jmx-exporter-openjdk110.12.0-9.el8_7
alma 8prometheus-jmx-exporter-openjdk170.12.0-9.el8_7
alma 8prometheus-jmx-exporter-openjdk80.12.0-9.el8_7
chainguardcassandra-4.00
chainguardcassandra-4.10
chainguardcassandra-5.00
chainguardcassandra-fips-4.00
chainguardcassandra-fips-4.10
chainguardcassandra-fips-5.00
chainguardcassandra-reaper4.0.1-r1
chainguarddruid0
chainguardelasticsearch-70
chainguardmanagement-api-for-apache-cassandra-4.00.1.89-r0
chainguardmanagement-api-for-apache-cassandra-4.10.1.109-r0
chainguardmanagement-api-for-apache-cassandra-5.00.1.89-r0
chainguardmetric-collector-for-apache-cassandra-4.00.3.6-r2
chainguardmetric-collector-for-apache-cassandra-4.10.3.6-r3
chainguards3proxy3.3.0-r2
chainguards3proxy-fips3.3.0-r2
debian 11snakeyamlno fix listed
debian 12snakeyamlno fix listed
debian 13snakeyamlno fix listed
debian 14snakeyamlno fix listed
echosnakeyamlno fix listed
echo maven::Echo OSVorg.yaml:snakeyaml2.0
maven::GitHub Security Advisory Mavenorg.yaml:snakeyaml2.0
minimosapache-druid37.0.0-r1
minimosapache-druid-fips37.0.0-r1
minimoscdc-apache-cassandra-5.02.3.9-r0
minimoscdc-apache-cassandra-fips-5.02.3.9-r0
minimosstargate2.0.51-r3
minimosstargate-fips2.0.51-r1
Oracle Linux 8prometheus-jmx-exporter0.12.0-9.el8_7
Oracle Linux 8prometheus-jmx-exporter-openjdk110.12.0-9.el8_7
Oracle Linux 8prometheus-jmx-exporter-openjdk170.12.0-9.el8_7
Oracle Linux 8prometheus-jmx-exporter-openjdk80.12.0-9.el8_7
rapidfort amazon linux 2023snakeyamlno fix listed
rapidfort debian 12snakeyamlno fix listed
rapidfort debian 13snakeyamlno fix listed
Red Hatcandlepinno fix listed
Red Hatcandlepin-selinuxno fix listed
Red Hatjenkins-2-pluginsno fix listed
Red Hatpuppetserverno fix listed
Red Hatsnakeyamlno fix listed
Red Hatsnakeyaml-javadocno fix listed
rocky 8prometheus-jmx-exporter0.12.0-9.el8_7
rocky 8prometheus-jmx-exporter-openjdk110.12.0-9.el8_7
rocky 8prometheus-jmx-exporter-openjdk170.12.0-9.el8_7
rocky 8prometheus-jmx-exporter-openjdk80.12.0-9.el8_7
seal Red Hat 7python-jinja22.7.2-4.el7+sp999
seal Red Hat 7seal-python-jinja22.7.2-4.el7+sp999
seal Red Hat 8libsolv0.7.20-6.el8+sp999
seal Red Hat 8seal-libsolv0.7.20-6.el8+sp999
wolficassandra-4.10
wolficassandra-5.00
wolficassandra-reaper4.0.1-r1
wolfidruid0
wolfimanagement-api-for-apache-cassandra-5.00.1.89-r0
wolfimetric-collector-for-apache-cassandra-4.10.3.6-r3

References

All 33 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.