Skip to content
Server Security Center
KEVcritical9.8 Used in ransomware campaigns

CVE-2017-5638: Apache Struts Remote Code Execution

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

CVSS v3.1 (CISA ADP)
9.8
critical
EPSS (exploit probability, 30 days)
>99.9%
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)
yes
technical impact: total

CVE-2017-5638 explained

CVE-2017-5638 is a remote code execution vulnerability in the Jakarta Multipart parser of Apache Struts 2. Incorrect exception handling and error-message generation during file uploads let remote attackers execute arbitrary commands through crafted HTTP headers. It has been exploited in the wild, is used in ransomware campaigns and is listed in CISA's Known Exploited Vulnerabilities catalog.

Impact

An unauthenticated remote attacker can execute arbitrary commands on the server running the vulnerable Struts application. Only a crafted HTTP request is needed, with no user interaction. Confidentiality, integrity and availability are all fully affected. CISA rates the flaw as automatable, so it can be exploited at scale, with total technical impact. CISA lists it as known exploited and notes known ransomware use.

Who is affected

The CVE record describes the affected versions of Apache Software Foundation Apache Struts in free text: the 2.3.x branch before 2.3.32 and the 2.5.x branch before 2.5.10.1. The CVE record names no fixed version in its structured data. The description implies that 2.3.32 and 2.5.10.1 are the first unaffected releases in their branches. Confirm the correct upgrade target in the vendor advisory.

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

Official description

The Jakarta Multipart parser in Apache Struts 2 2.3.x before 2.3.32 and 2.5.x before 2.5.10.1 has incorrect exception handling and error-message generation during file-upload attempts, which allows remote attackers to execute arbitrary commands via a crafted Content-Type, Content-Disposition, or Content-Length HTTP header, as exploited in the wild in March 2017 with a Content-Type header containing a #cmd= string.

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
    • 2.3.x before 2.3.32
    • 2.5.x before 2.5.10.1
    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-046.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 that use Apache Struts 2, including bundled copies inside deployed applications.
  2. Upgrade Struts 2.3.x to 2.3.32 or later and 2.5.x to 2.5.10.1 or later, following the vendor advisory.
  3. Apply updates per vendor instructions, as CISA requires.
  4. Restrict network exposure of Struts applications that cannot be updated immediately.
  5. Check affected servers for signs of compromise, such as unexpected processes, files or outbound connections, given known ransomware use.

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

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
Yes – attackers can automate it at scale
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-755 Improper Handling of Exceptional Conditions

Questions about CVE-2017-5638

Is CVE-2017-5638 being actively exploited?
Yes. The description states it was exploited in the wild in March 2017. CISA added it to its Known Exploited Vulnerabilities catalog on 2021-11-03 and reports known ransomware use.
Does an attacker need credentials or user interaction?
No. The attack works over the network with low complexity, no privileges and no user interaction. CISA rates it as automatable.
What deadline applies to US federal agencies?
CISA set a due date of 2022-05-03 for US federal agencies to apply updates per vendor instructions.

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.