cve.bz

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

8.1 highKEVExploitEPSS 99.3%Fix available

High (8.1) in Apache Struts. In CISA KEV since 2021-11-03. EPSS 99.3% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.struts:struts2-rest-plugin 2.3.34, 2.5.13.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
99.3% (unchanged from 99.3% a week ago; 99.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2021-11-03, due 2022-05-03
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2025-02-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-9805 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-9805?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-9805?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-9805 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:strutsfrom 2.1.2 before 2.3.34
apache:strutsfrom 2.5.0 before 2.5.13
cisco:hosted_collaboration_solution10.5(1)
cisco:hosted_collaboration_solution11.0(1)
cisco:hosted_collaboration_solution11.5(1)
cisco:hosted_collaboration_solution11.6(1)
cisco:media_experience_engine3.5
cisco:media_experience_engine3.5.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-gg9m-fj3v-r58cMavenorg.apache.struts:struts2-rest-plugin>=2.1.1 <2.3.342.3.34
GHSA-gg9m-fj3v-r58cMavenorg.apache.struts:struts2-rest-plugin>=2.5.0 <2.5.132.5.13

Red Hat

Red Hat rates this Important.

Red Hat's statement

A previous statement by Red Hat related to this CVE, prior to August 2019, said that Apache Struts 2 is not included in any Red Hat products. This earlier statement was incorrect. While Struts 2 is not actively compiled, shipped, used, or enabled in any Red Hat provided final products, and does not cause any vulnerability in the product, struts2-core jars have been included in some products' source code packages. The inclusion was part of an import of the Google Guice repository, which includes struts2-core. Customers that build artefacts from our source code could be at risk. Red Hat will remove these artefacts from source code in future releases.

The products that included the Struts 2 artefacts in their source jars:

Fuse Service Works 6.0.0

Single Sign On 7.3.0+

If you have used the source package from one of these products to build artefacts on your system, you should do the following to remove potentially affected jars:

1. Run 'find . -name struts2*.jar' under the source location

2. Remove any files found

This will not affect the product, as the jar is included with the source of google-guice, but no functionality requiring struts2 is implemented.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5strutsNot affected
Red Hat JBoss Data Virtualization 6strutsNot affected
Red Hat JBoss Fuse Service Works 6strutsNot affected
Red Hat JBoss Operations Network 3strutsNot affected
Red Hat Satellite 5strutsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-9805.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template Apache Struts2 S2-052 - Remote Code Execution
  • Emerging Threats Open ET EXPLOIT Apache Struts 2 REST Plugin Vulnerability (CVE-2017-9805) sid 2027516
  • Emerging Threats Open ET SCAN struts-pwn User-Agent sid 2024843
  • Emerging Threats Open ET EXPLOIT Apache Struts 2 REST Plugin ysoserial Usage (B64) 1 sid 2024668
  • Emerging Threats Open ET EXPLOIT Apache Struts 2 REST Plugin ysoserial Usage (B64) 2 sid 2024669
  • Emerging Threats Open ET EXPLOIT Apache Struts 2 REST Plugin ysoserial Usage (B64) 3 sid 2024670
  • Emerging Threats Open ET EXPLOIT Apache Struts 2 REST Plugin (B64) 4 sid 2024671
  • Emerging Threats Open ET EXPLOIT Apache Struts 2 REST Plugin (B64) 5 sid 2024672
  • Emerging Threats Open ET EXPLOIT Apache Struts 2 REST Plugin (B64) 6 sid 2024673
  • Emerging Threats Open ET EXPLOIT Apache Struts 2 REST Plugin (Runtime.Exec) sid 2024674
  • Emerging Threats Open ET EXPLOIT Apache Struts 2 REST Plugin (ProcessBuilder) sid 2024675
  • Emerging Threats Open ET EXPLOIT Apache Struts 2 REST Plugin XStream RCE (ProcessBuilder) sid 2024663
  • Emerging Threats Open ET EXPLOIT Apache Struts 2 REST Plugin XStream RCE (Runtime.Exec) sid 2024664

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON