cve.bz

CVE-2022-1471 (ShellTorch) snakeyaml project snakeyaml: Deserialization of Untrusted Data

9.8 criticalExploitEPSS 99.5%Fix available

Known as ShellTorch

Critical (9.8) in snakeyaml project snakeyaml. EPSS 99.5% estimated probability of exploitation activity in the next 30 days. Fixed in org.yaml:snakeyaml 2.0.

On this page
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.

Severity

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
EPSS
99.5% (unchanged from 99.5% a week ago; 99.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2024-08-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-502 Deserialization of Untrusted Data
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection, A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-1471 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-1471?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-1471?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-1471 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
SnakeYAMLthrough 2.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mjmj-j48q-9wg2Mavenorg.yaml:snakeyaml<2.02.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14snakeyamlno fix listedDEBIAN-CVE-2022-1471
Ubuntu22.04:LTS, 24.04:LTS, Pro:14.04:LTS and 3 moresnakeyamlno fix listedUBUNTU-CVE-2022-1471
Red Hatenterprise_linux:8::appstreamprometheus-jmx-exporter, prometheus-jmx-exporter-openjdk8, prometheus-jmx-exporter-openjdk11 and 1 more0:0.12.0-9.el8_7RHSA-2022:9058
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-activemq-artemis-native1:1.0.2-3.redhat_00004.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-apache-mime4j0:0.8.9-1.redhat_00001.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-artemis-native, eap7-artemis-native-wildfly, eap7-artemis-native-debuginfo1:1.0.2-4.redhat_00004.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-artemis-wildfly-integration0:1.0.7-1.redhat_00001.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-infinispan, eap7-infinispan-core, eap7-infinispan-commons and 7 more0:11.0.17-1.Final_redhat_00001.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-ironjacamar, eap7-ironjacamar-jdbc, eap7-ironjacamar-core-api and 6 more0:1.5.11-1.Final_redhat_00001.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-ejb-client0:4.0.50-1.Final_redhat_00001.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-el-api_3.0_spec0:2.0.1-1.Final_redhat_00001.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-metadata, eap7-jboss-metadata-ear, eap7-jboss-metadata-ejb and 3 more0:13.4.0-1.Final_redhat_00001.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jboss-server-migration, eap7-jboss-server-migration-cli, eap7-jboss-server-migration-core0:1.10.0-26.Final_redhat_00025.1.el7eapRHSA-2023:1512
Red Hatjboss_enterprise_application_platform:7.4::el7eap7-jbossws-cxf0:5.4.8-1.Final_redhat_00001.1.el7eapRHSA-2023:1512
278 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8prometheus-jmx-exporter, prometheus-jmx-exporter-openjdk8, prometheus-jmx-exporter-openjdk11 and 1 more0.12.0-9.el8_7ALSA-2022:9058
Rocky Linux8prometheus-jmx-exporter0:0.12.0-9.el8_7RLSA-2022:9058

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

In the Red Hat Process Automation 7 (RHPAM) the untrusted, malicious YAML file for deserialization by the vulnerable Snakeyaml's SafeConstructor class must be provided intentionally by the RHPAM user which requires high privileges. The potential attack complexity is also high because it depends on conditions that are beyond the attacker's control. Due to that the impact for RHPAM is reduced to Low.

Red Hat Fuse 7 does not expose by default any endpoint that passes incoming data/request into vulnerable Snakeyaml's Constructor class nor pass untrusted data to this class. When this class is used, it’s still only used to parse internal configuration, hence the impact by this vulnerability to Red Hat Fuse 7 is reduced to Moderate.

ProductPackageStateAdvisory
OpenShift Developer Tools and Services for OCP 4.11jenkins-2-plugins-0:4.11.1683009941-1.el8Fixed 2023-05-17RHSA-2023:3198
OpenShift Developer Tools and Services for OCP 4.11jenkins-2-plugins-0:4.11.1698299029-1.el8Fixed 2023-10-30RHSA-2023:6171
OpenShift Developer Tools and Services for OCP 4.11jenkins-2-plugins-0:4.11.1706516946-1.el8Fixed 2024-02-12RHSA-2024:0775
Red Hat AMQ ClientssnakeyamlFixed 2023-12-07RHSA-2023:7697
Red Hat AMQ Streams 2.5.0Fixed 2023-09-14RHSA-2023:5165
Red Hat build of Eclipse Vert.x 4.3.4snakeyamlFixed 2022-12-15RHSA-2022:9032
Red Hat build of QuarkusFixed 2023-02-14RHSA-2023:0758
Red Hat build of Quarkus 2.7.7snakeyamlFixed 2023-03-08RHSA-2023:1006
Red Hat Enterprise Linux 8prometheus-jmx-exporter-0:0.12.0-9.el8_7Fixed 2022-12-15RHSA-2022:9058
Red Hat JBoss Enterprise Application Platformorg.yaml/snakeyaml:1.33.0.SP1-redhat-00001Fixed 2023-03-29RHSA-2023:1516
A-MQ Clients 2snakeyamlAffected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch6-rhel8Not affected
Red Hat AMQ Broker 7snakeyamlNot affected
Red Hat A-MQ OnlinesnakeyamlNot affected
Red Hat build of Apache Camel for Spring Boot 3snakeyamlAffected
Red Hat build of Apicurio Registry 2snakeyamlNot affected
Red Hat build of Debezium 1snakeyamlNot affected
Red Hat build of OpenJDK 11snakeyamlNot affected
Red Hat Data Grid 8snakeyamlWill not fix
Red Hat Decision Manager 7snakeyamlAffected
49 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-1471.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Emerging Threats Open ET WEB_SPECIFIC_APPS Atlassian Bitbucket CVE-2022-1471 Vulnerable Server Detected Version 7.17.x - 7.21.15 sid 2049637
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Atlassian Bitbucket CVE-2022-1471 Vulnerable Server Detected Version 8.0 - 8.12.0 sid 2049638
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Atlassian Confluence CVE-2022-1471 Vulnerable Server Detected Version 6.13.x - 6.15.x M1 sid 2049639
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Atlassian Confluence CVE-2022-1471 Vulnerable Server Detected Version 6.13.x - 6.15.x M2 sid 2049640
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Atlassian Confluence CVE-2022-1471 Vulnerable Server Detected Version 7.x M1 sid 2049641
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Atlassian Confluence CVE-2022-1471 Vulnerable Server Detected Version 7.x M2 sid 2049642
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Atlassian Confluence CVE-2022-1471 Vulnerable Server Detected Version 8.0 - 8.3 M1 sid 2049643
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Atlassian Confluence CVE-2022-1471 Vulnerable Server Detected Version 8.0 - 8.3 M2 sid 2049644
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Atlassian Jira CVE-2022-1471 Vulnerable Server Detected Version 9.4 - 9.11.1 M1 sid 2049645
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Atlassian Jira CVE-2022-1471 Vulnerable Server Detected Version 9.4 - 9.11.1 M2 sid 2049646

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON