Skip to main content

Deserialization of Untrusted Data in org.yaml:snakeyaml

CVE-2022-1471

  • org.yaml:snakeyaml
Severity High
Score 9.8/10

Summary

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. This issue affects versions prior to 2.0.

  • LOW
  • NETWORK
  • HIGH
  • UNCHANGED
  • NONE
  • NONE
  • HIGH
  • HIGH

CWE-502 - Deserialization of Untrusted Data

Deserialization of untrusted data vulnerabilities enable an attacker to replace or manipulate a serialized object, replacing it with malicious data. When the object is deserialized at the victim's end the malicious data is able to compromise the victim’s system. The exploit can be devastating, its impact may range from privilege escalation, broken access control, or denial of service attacks to allowing unauthorized access to the application's internal code and logic which can compromise the entire system.

Advisory Timeline

  • Published