Vulnerability · Published Dec 1, 2022 · Assigned by Google

CVE-2022-1471Remote Code execution in SnakeYAML

High 8.3

In plain English

A high-severity improper input validation in SnakeYAML from SnakeYAML. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 99.5% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.3High
Exploit odds (30 days)99.5%top 0.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling2Metasploit, Public PoC

Official 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 & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8prometheus-jmx-exporter0.12.0-9.el8_7ALSA-2022:9058
AlmaLinux:8prometheus-jmx-exporter-openjdk110.12.0-9.el8_7ALSA-2022:9058
AlmaLinux:8prometheus-jmx-exporter-openjdk170.12.0-9.el8_7ALSA-2022:9058
AlmaLinux:8prometheus-jmx-exporter-openjdk80.12.0-9.el8_7ALSA-2022:9058
Debian:12snakeyamlno fix listedDEBIAN-CVE-2022-1471
Debian:13snakeyamlno fix listedDEBIAN-CVE-2022-1471
Debian:14snakeyamlno fix listedDEBIAN-CVE-2022-1471
Mavenorg.yaml:snakeyaml2.0GHSA-mjmj-j48q-9wg2
Rocky Linux:8prometheus-jmx-exporter0:0.12.0-9.el8_7RLSA-2022:9058
Ubuntu:22.04:LTSsnakeyamlno fix listedUBUNTU-CVE-2022-1471
Ubuntu:24.04:LTSsnakeyamlno fix listedUBUNTU-CVE-2022-1471

Affected products (as reported)

VendorProductVersions
SnakeYAML SnakeYAML 0 – through 2.0

Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

References