CVE-2022-1471
Last modified
CVE-2022-1471 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 99.61% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Snakeyaml Project | Snakeyaml | < 2.0 |
References
- https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in#comment-64581479Issue Tracking, Third Party Advisory
- https://github.com/google/security-research/security/advisories/GHSA-mjmj-j48q-9wg2Exploit, Third Party Advisory
- https://github.com/mbechler/marshalsecExploit, Third Party Advisory
- https://www.github.com/mbechler/marshalsec/blob/master/marshalsec.pdf?raw=trueExploit, Third Party Advisory
- https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in#comment-64581479Issue Tracking, Third Party Advisory
- https://github.com/google/security-research/security/advisories/GHSA-mjmj-j48q-9wg2Exploit, Third Party Advisory
- https://github.com/mbechler/marshalsecExploit, Third Party Advisory
- https://www.github.com/mbechler/marshalsec/blob/master/marshalsec.pdf?raw=trueExploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-1471?
How severe is CVE-2022-1471?
How do I fix CVE-2022-1471?
Are you affected by CVE-2022-1471?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
