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.
References
Link | Resource |
---|---|
https://github.com/google/security-research/security/advisories/GHSA-mjmj-j48q-9wg2 | Exploit Third Party Advisory |
https://github.com/mbechler/marshalsec | Exploit Third Party Advisory |
https://www.github.com/mbechler/marshalsec/blob/master/marshalsec.pdf?raw=true | Exploit Third Party Advisory |
https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in#comment-64581479 | Issue Tracking Third Party Advisory |
Configurations
Information
Published : 2022-12-01 03:15
Updated : 2023-03-21 06:17
NVD link : CVE-2022-1471
Mitre link : CVE-2022-1471
JSON object : View
CWE
CWE-502
Deserialization of Untrusted Data
Products Affected
snakeyaml_project
- snakeyaml