CVE-2022-1471

Remote Code execution in SnakeYAML

State
Published
Severity
8.3 High
Published
Dec 1, 2022
Updated
Jun 18, 2025
Reserved
Apr 26, 2022

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.3 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:LGoogle

Weaknesses

  • CWE-20 Improper Input Validation

Affected Products

ProductVersions
SnakeYAMLSnakeYAML
  • 2.0 and earlierAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.