CVE-2017-9805: Remote Code Execution in Apache Struts 2 REST Plugin
- Vendors
- Cisco SystemsNetAppApache Software Foundation
CVE-2017-9805 is an insecure deserialization vulnerability in the Apache Struts 2 REST plugin. Its XStreamHandler uses XStream to deserialize XML payloads without type filtering, allowing specially crafted XML requests to trigger arbitrary code execution in the context of the Struts application. Affected releases precede 2.3.34 in the 2.3.x branch and 2.5.13 in the 2.5.x branch. The earliest affected version is inconsistently identified as 2.1.1 or 2.1.6.
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.
An unauthenticated remote attacker can execute arbitrary code with the privileges of the Struts application. Successful exploitation can compromise the application and potentially the underlying system; full system compromise is not guaranteed.
Mitigation
If you can’t patch tonight, do this now.
Remove the REST plugin if it is unused. Otherwise, disable XML request and response handling, restrict the plugin to normal server pages and JSON, or override XStreamHandler to prevent XML processing. Workaround guidance is inconsistent: one advisory states that no workaround is possible despite also listing configuration-based mitigations. Upgrading is the preferred resolution.
Remediation
Patch, then assume compromise.
Upgrade Apache Struts to 2.3.34 or later in the 2.3.x branch, or 2.5.13 or later in the 2.5.x branch. These releases introduce deserialization type filtering and class restrictions. Review REST actions for compatibility with the new restrictions. Updating only the REST plugin and its required dependencies is also identified as an alternative.
Exploits
8 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 2 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-2017-9805 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
- Is there a public exploit for CVE-2017-9805?
- Yes. Mallory tracks 8 public exploits or proofs of concept for CVE-2017-9805, the earliest disclosed Sep 5, 2017.
- Is there a patch for CVE-2017-9805?
- Upgrade Apache Struts to 2.3.34 or later in the 2.3.x branch, or 2.5.13 or later in the 2.5.x branch. These releases introduce deserialization type filtering and class restrictions.
- What products are affected by CVE-2017-9805?
- Apache Software Foundation Struts, Cisco Systems Digital Media Manager, Cisco Systems Hosted Collaboration Solution, Cisco Systems Media Experience Engine, Cisco Systems Network Performance Analysis, and 2 more.
- How severe is CVE-2017-9805?
- CVE-2017-9805 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 99.4% (100th percentile) as of Oct 16, 2026.
Recent activity
17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.