CVE-2022-1471: SnakeYAML Constructor Deserialization Remote Code Execution
- Vendor
- Snakeyaml Project
CVE-2022-1471 is an unsafe deserialization vulnerability in SnakeYAML versions before 2.0. The Constructor class does not adequately restrict which Java types can be instantiated during YAML deserialization. Applications that process attacker-controlled YAML using Yaml.load() with an unsafe constructor can instantiate attacker-selected classes through explicit YAML type tags. When suitable classes or gadget chains are available in the application runtime, object construction can trigger arbitrary code execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can execute arbitrary code with the privileges of the application processing the YAML. This can compromise application-accessible sensitive data, permit unauthorized data modification, and disrupt service availability. The extent of compromise depends on the runtime classes available, application permissions, and deployment isolation; the presence of a vulnerable dependency alone does not establish an exploitable input path.
Mitigation
If you can’t patch tonight, do this now.
Use SnakeYAML SafeConstructor when parsing untrusted YAML to prevent arbitrary Java object construction. Until a fix is deployed, avoid accepting untrusted YAML through unsafe deserialization paths and restrict access to affected services or import interfaces. Network restrictions reduce exposure but do not protect against malicious YAML supplied through other input channels.
Remediation
Patch, then assume compromise.
Upgrade SnakeYAML to version 2.0 or later and ensure untrusted YAML is parsed using a safe configuration. For products bundling SnakeYAML, apply the vendor-supported security update rather than independently replacing dependencies. Identified fixed releases include HCL Workload Automation 10.1.0.3, DynamoDB local 1.25.1 for the 1.x branch or 2.5.3 for the 2.x branch, and TorchServe 0.8.2. Update and redeploy dependent application packages and container images as applicable.
Exploits
7 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2022-1471 exploited in the wild?
- As of Nov 25, 2026, Mallory has no reports of CVE-2022-1471 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2022-1471?
- Yes. Mallory tracks 7 public exploits or proofs of concept for CVE-2022-1471, the earliest disclosed May 8, 2023.
- Is there a patch for CVE-2022-1471?
- Upgrade SnakeYAML to version 2.0 or later and ensure untrusted YAML is parsed using a safe configuration. For products bundling SnakeYAML, apply the vendor-supported security update rather than independently replacing dependencies.
- What products are affected by CVE-2022-1471?
- Snakeyaml Project Snakeyaml.
- How severe is CVE-2022-1471?
- CVE-2022-1471 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 54.2% (99th percentile) as of Nov 25, 2026.
Recent activity
59 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.