CyberSecBulletin
CVE-2017-5638Exploited in the wildNVD status: Analyzed

Apache Struts Remote Code Execution

CVE-2017-5638 is a critical-severity improper handling of exceptional conditions vulnerability in Apache Struts from Apache, with a CVSS 3.1 base score of 9.8 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected Apache Struts versions: 2.3.x before 2.3.32; 2.5.x before 2.5.10.1. The record does not name a fixed version, so check the vendor advisory. CISA added it to the Known Exploited Vulnerabilities catalogue on November 3, 2021, which means attacks have been observed in the wild, including in ransomware campaigns.

Patch now

Attackers are already exploiting this vulnerability, according to CISA.

What to do

  1. Update Struts to 2.3.32 or 2.5.10.1, whichever matches your release line, or a later version.
  2. Update Clearpass Policy Manager to 6.6.5 or a later version.
  3. CISA's required action: Apply updates per vendor instructions.
  4. Read the advisory on oracle.com for workarounds and exact fixed builds.
  5. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
ApacheApache Struts2.3.x before 2.3.32; 2.5.x before 2.5.10.1Not stated
ApacheStruts2.2.3 up to, but not including, 2.3.32; 2.5.0 up to, but not including, 2.5.10.12.3.32, 2.5.10.1
IBMStorwize V3500 Firmware7.7.1.6; 7.8.1.0Not stated
IBMStorwize V5000 Firmware7.7.1.6; 7.8.1.0Not stated
IBMStorwize V7000 Firmware7.7.1.6; 7.8.1.0Not stated
LenovoStorage V5030 Firmware7.7.1.6; 7.8.1.0Not stated
HPServer Automation9.1.0; 10.0.0; 10.1.0; 10.2.0; 10.5.0Not stated
OracleWeblogic Server10.3.6.0.0; 12.1.3.0.0; 12.2.1.1.0; 12.2.1.2.0Not stated
Aruba NetworksClearpass Policy Managerbefore 6.6.56.6.5
NetAppOncommand BalanceNot specified in the recordNot stated

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.19.8CriticalNVD
CVSS 3.19.8CriticalCISA (ADP)
CVSS 2.010.0HighNVD

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.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Improper Handling of Exceptional Conditions

The product does not handle or incorrectly handles an exceptional condition.

More Improper Handling of Exceptional Conditions vulnerabilities (CWE-755)

Timeline

  1. CVE record published.
  2. Added to CISA's Known Exploited Vulnerabilities catalogue.
  3. Deadline for US federal agencies to remediate, set by CISA.
  4. CISA published its SSVC assessment (exploitation: active, automatable: yes, technical impact: total).
  5. Record last changed materially (score, affected products, status or references).

References

Third-party and government advisories

Other vulnerabilities in Apache Struts

All Apache Struts vulnerabilities

Spotted an error? Tell us.