Skip to content
Server Security Center
KEVhigh8.1

CVE-2017-9805: Apache Struts Deserialization of Untrusted Data

Apache Struts · listed in the CISA catalog of actively exploited vulnerabilities since 2021-11-03.

CVSS v3.1 (CISA ADP)
8.1
high
EPSS (exploit probability, 30 days)
99.3%
among the highest 0.1% of all CVEs
Added to CISA KEV
2021-11-03
US federal due date 2022-05-03
Automatable (CISA SSVC)
no
technical impact: total

CVE-2017-9805 explained

CVE-2017-9805 is a deserialization flaw in the REST Plugin of Apache Struts. The plugin uses an XStreamHandler with an XStream instance that deserializes XML payloads without any type filtering, which can lead to remote code execution. CISA lists it as a known exploited vulnerability, so exposed Struts applications using the REST Plugin need prompt attention.

Impact

A remote attacker needs no privileges and no user interaction. By sending crafted XML to an application that uses the REST Plugin, the attacker can achieve remote code execution. Attack complexity is rated high. CISA rates the technical impact as total, meaning full control of the affected component. CISA does not consider it automatable. Confidentiality, integrity and availability impacts are all high. Attackers are known to exploit this vulnerability.

Who is affected

The description names the REST Plugin in Apache Struts 2.1.1 through 2.3.x before 2.3.34, and 2.5.x before 2.5.13. The CVE record lists the affected versions in free text as "Apache Struts before 2.3.34 and 2.5.x before 2.5.13". The CVE record names no fixed version. Check the vendor advisory for the releases that contain the fix.

Written with AI from the data on this page and checked against it automatically.

Official description

The REST Plugin in Apache Struts 2.1.1 through 2.3.x before 2.3.34 and 2.5.x before 2.5.13 uses an XStreamHandler with an instance of XStream for deserialization without any type filtering, which can lead to Remote Code Execution when deserializing XML payloads.

CISA required action: Apply updates per vendor instructions.

CISA notes

Affected and fixed versions

From the CVE record published by the vendor or CVE numbering authority.

  • Apache Software Foundation Apache Struts
    Affected
    • Apache Struts before 2.3.34 and 2.5.x before 2.5.13
    Fixed in
    not stated

    Version statement as published by the CNA (free text).

How to fix it

  • The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
  • Vendor advisory: struts.apache.org/docs/s2-052.html
  • CISA's deadline for US federal agencies: 2022-05-03 (passed) – a useful benchmark for everyone else, too.

What to do

  1. Identify all applications built on Apache Struts, and check whether they include the REST Plugin.
  2. Apply updates per the vendor instructions in the Apache advisory, moving off the affected 2.3.x and 2.5.x releases.
  3. Apply any mitigations in the vendor advisory to systems you cannot update right away.
  4. Limit network exposure of Struts applications that process XML through the REST Plugin.
  5. Check affected servers for signs of compromise, because this vulnerability is known to be exploited.

The CVE record names no fixed version. Follow the Apache vendor advisory to find the corrected releases. CISA's required action is to apply updates per vendor instructions. Until you update, apply the vendor's mitigations, and limit network access to applications that use the REST Plugin.

Written with AI from the data on this page and checked against it automatically.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
No – each attack needs manual steps
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-502 Deserialization of Untrusted Data

Questions about CVE-2017-9805

Is CVE-2017-9805 being exploited?
Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2021-11-03, with a US federal due date of 2022-05-03. Whether it has been used in ransomware campaigns is unknown.
Which component is vulnerable?
The REST Plugin in Apache Struts. It deserializes XML payloads with XStream without type filtering, which can lead to remote code execution.
Does an attacker need credentials?
No. The CVSS data shows a network attack that needs no privileges and no user interaction, although attack complexity is rated high.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.