Apache Struts S2-067 File Upload Path Traversal
CVE-2024-53677 is a file upload vulnerability in Apache Struts versions 2.0.0 before 6.4.0 affecting applications that use the legacy FileUploadInterceptor. Insufficient validation of upload parameters allows attackers to manipulate uploaded filenames and perform path traversal, placing malicious files in otherwise restricted directories. Remote code execution is possible when an uploaded file can be exposed and executed by the application server. Applications that do not use the legacy file upload mechanism are unaffected.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits unauthorized uploads into restricted directories and modification of the affected system. Uploading an executable server-side payload, such as a web shell, can enable arbitrary command execution. Remote code execution depends on the uploaded payload reaching a location where it can be invoked and executed. Active exploitation attempts and publicly available proof-of-concept exploits have been reported.
If you can’t patch tonight, do this now.
Disable file upload functionality where it is unnecessary, and apply WAF rules to help block malicious upload requests pending complete remediation. Review network and security logs for evidence of exploitation. These measures do not replace upgrading and migrating away from the legacy upload mechanism.
Patch, then assume compromise.
Upgrade Apache Struts to version 6.4.0 or later and migrate to the new Action File Upload mechanism and its related interceptor. Upgrading the framework alone while retaining the legacy upload mechanism is insufficient. Migration is not backward compatible and requires corresponding application source changes, including rewriting affected actions and interceptor configurations.
12 exploits validated by Mallory's analysis. Hidden: 4 rejected by Mallory's analysis as not a working exploit; 3 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
14 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.