Live threats

All CVEs / Snakeyaml Project

CVE-2022-1471Snakeyaml Project Snakeyaml

Critical 9.8 No auth neededHigh EPSS

Priority
80
CVSS 3.1
9.8
EPSS
62.0%
probability of exploitation in 30 days · percentile 99
Auth required
No
Published
Dec 1, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20, CWE-502
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Snakeyaml.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.yaml:snakeyaml < 2.0 2.0 —

Per OSV / GitHub Advisories (GHSA-mjmj-j48q-9wg2). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
snakeyaml_projectsnakeyaml< 2.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.