Skip to content
OpenAdvisories
Critical · 9.8 Known exploited · Ransomware Scanner template Public exploit CVE-2017-5638 EUVD-2018-0625GHSA-j77q-2qqg-6989

Apache Struts vulnerable to remote arbitrary command execution due to improper input validation

Published Mar 11, 2017 · Updated Oct 21, 2025 · Assigned by apache

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.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Struts 2.3.x before 2.3.32, 2.5.x before 2.5.10.1 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 2

GitHub 87 repositories · most starred shown

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.struts:struts2-core >= 2.3.0, < 2.3.32 2.3.32 GHSA-j77q-2qqg-6989
Maven org.apache.struts:struts2-core >= 2.5.0, < 2.5.10.1 2.5.10.1 GHSA-j77q-2qqg-6989

Advisories 2

References