Patchfirst
CVE-2022-1471 Public exploit High · 8.3 EPSS 99.5%

Remote Code execution in SnakeYAML

Fix:upgrade snakeyaml to 2.0 or later Details ↓

SnakeYAML · SnakeYAML

Summary

SnakeYAML's Constructor class fails to restrict which types can be instantiated during YAML deserialization, flaw that lives in the library's core parsing component. An attacker who can supply YAML content that the application deserializes, with low privileges and no user interaction over the network, can achieve remote code execution.

Official description · CVE.org

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.

Breakdown
77.8 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

Public exploit code (PoC-in-GitHub) appeared 3 months after disclosure. No confirmed exploitation is recorded.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+3 mo

Affected versions and fixes

as published in the CVE record

SnakeYAML SnakeYAML

Affected: <= 2.0

Attack pattern (CAPEC)

CAPEC-253 Remote Code Inclusion

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: org.yaml:snakeyaml.

Mavenorg.yaml:snakeyamlGHSA-mjmj-j48q-9wg2

Upgrade to 2.0 or later

Set the version to 2.0 or later in your pom.xml or build.gradle.

The first fix for CVE-2022-1471. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 2.02.0

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

References

11 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close