LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2017-5638: Apache Struts Remote Code Execution Vulnerability

RBRecent Breaches Vulnerability Intelligence·Nov 3, 2021
Critical⚠ Actively exploited (CISA KEV)Ransomware-linked
Critical
Severity
Active
CISA KEV
Yes
Ransomware use
May 3, 2022
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2017-5638 to its Known Exploited Vulnerabilities catalog on Nov 3, 2021, with a federal patch deadline of May 3, 2022 — meaning attackers are actively using it. If you run the affected software, patch it immediately. Ransomware crews are known to exploit this flaw.

Apache Struts Jakarta Multipart parser allows for malicious file upload using the Content-Type value, leading to remote code execution.

CVE-2017-5638 is a remote code execution vulnerability in Apache Struts stemming from improper handling of input in the Jakarta Multipart parser. An attacker can abuse the Content-Type value during file upload handling to achieve code execution on the server. This matters because Struts is widely used in Java web applications; successful exploitation can give an attacker full control of the affected host, and the vulnerability has been used in ransomware campaigns. Confirm all version and configuration details against the vendor advisory before acting.

How it works

The underlying weakness is CWE-20 (Improper Input Validation). According to the CISA summary, the Apache Struts Jakarta Multipart parser allows malicious file upload activity that abuses the Content-Type value, which can lead directly to remote code execution. In practical terms, the parser does not adequately validate or constrain attacker-controlled header data associated with multipart requests. A remote, unauthenticated attacker who can reach an endpoint that processes multipart form data may supply a crafted Content-Type value that the parser mishandles, resulting in execution of attacker-chosen code in the context of the Struts application.

Exact request structure, payload format, and affected code paths are not detailed here; defenders must treat any publicly reachable Struts multipart upload endpoint as potentially exploitable until the vendor advisory and their own inventory confirm otherwise. Because the result is remote code execution, post-exploitation can include web shells, lateral movement, data theft, or deployment of ransomware.

Am I affected? How to find it in your systems

Apache Struts is a Java framework commonly embedded in enterprise web applications, often running on application servers such as Tomcat, JBoss/WildFly, WebLogic, or similar. It may appear as a direct dependency or be bundled inside custom or third-party WAR/EAR packages.

If you cannot determine the exact Struts version or whether the Jakarta Multipart parser is in use, treat the application as potentially affected until proven otherwise.

How to remediate

Patching is the primary remediation. Apply the updates provided by the vendor for Apache Struts exactly as described in the official advisory for CVE-2017-5638. CISA’s required action is to apply updates per vendor instructions. After patching, redeploy or restart affected applications as required and verify the new library versions are loaded at runtime.

If you can't patch immediately

If an immediate upgrade is not possible, reduce exposure with compensating controls while you schedule the vendor update.

These measures lower risk but do not eliminate it; plan to apply the vendor update as soon as possible.

If your data may have been exposed

This vulnerability enables remote code execution and has known ransomware use. If exploitation is suspected or confirmed, treat the incident as a potential breach: isolate affected systems, preserve logs and forensic images, and follow your incident response process, including notification obligations. Determine what data the compromised application could access and whether ransomware or data exfiltration occurred. As a further check, you can run a free exposure scan of your email addresses against known breach data sets to see whether associated credentials or personal information have appeared in prior breaches, then force password resets and enable multi-factor authentication where relevant.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedApache · Struts
WeaknessCWE-20
Added to CISA KEVNov 3, 2021
Federal patch deadlineMay 3, 2022
Known ransomware useYes
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities