What’s Vulnerable › Vulnerabilities

CVE-2022-1471: Remote Code execution in SnakeYAML

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 products

How to fix

Upgrade to a fixed version: SnakeYAML 2.0; Maven Org.Yaml:Snakeyaml 2.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-1471 or the next vulnerability affects your stack