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

Critical severity, CVSS 9.8. Actively exploited: in CISA KEV since 2021-11-03. EPSS: >99% probability of exploitation activity in the next 30 days.

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.

What to do

CISA's required action (US federal agencies, by 2022-05-03): Apply updates per vendor instructions.

The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.

  • Apache Struts, from 2.2.3, before 2.3.32: fixed in 2.3.32
  • Apache Struts, from 2.5.0, before 2.5.10.1: fixed in 2.5.10.1
  • Arubanetworks Clearpass Policy Manager, before 6.6.5: fixed in 6.6.5

Affected products

Affected packages

Published 2017-03-11. Last modified 2026-06-17.