CVE-2024-53677: Apache Struts: Mixing setters for uploaded files and normal fields can allow bypass file upload checks

Published Dec 11, 2024
·
Updated

File upload logic in Apache Struts is flawed. An attacker can manipulate file upload params to enable paths traversal and under some circumstances this can lead to uploading a malicious file which can be used to perform Remote Code Execution.

This issue affects Apache Struts: from 2.0.0 before 6.4.0.

Users are recommended to upgrade to version 6.4.0 at least and migrate to the new file upload mechanism https://struts.apache.org/core-developers/file-upload . If you are not using an old file upload logic based on FileuploadInterceptor your application is safe.

You can find more details in  https://cwiki.apache.org/confluence/display/WW/S2-067

Other sources

File upload logic is flawed vulnerability in Apache Struts. An attacker can manipulate file upload params to enable paths traversal and under some circumstances this can lead to uploading a malicious file which can be used to perform Remote Code Execution.

This issue affects Apache Struts: from 2.0.0 before 6.4.0.

Users are recommended to upgrade to version 6.4.0 at least and migrate to the new file upload mechanism https://struts.apache.org/core-developers/file-upload. If you are not using an old file upload logic based on FileuploadInterceptor your application is safe.

You can find more details in  https://cwiki.apache.org/confluence/display/WW/S2-067 .

— GitHub

Affected Software

2 affected componentsFixes available
Apache struts>=2.0.0<6.4.0
maven/org.apache.struts:struts2-core<6.4.0
6.4.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.struts:struts2-core to a version that resolves this vulnerability.

    Fixed in 6.4.0
  2. Upgrade

    Upgrade Apache Struts to a version that resolves this vulnerability.

    Fixed in 6.4.0
  3. Configuration

    Migrate from the old FileuploadInterceptor-based file upload logic to the new file upload mechanism.

    Apache Struts file upload mechanism = new file upload mechanism

Event History

Dec 11, 2024
CVE Published
via MITRE·03:35 PM
Data Sourced
via MITRE·03:35 PM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·06:30 PM
Data Sourced
via GitHub·06:30 PM
DescriptionSeverityWeaknessAffected Software
Dec 12, 2024
News Published
via The Register·01:31 PM
News Published
via The Register·01:35 PM
Dec 17, 2024
News Published
via BleepingComputer·06:04 PM
News Published
via BleepingComputer·06:05 PM
News Published
via The Register·09:57 PM
Dec 19, 2024
News Published
via Dark Reading·05:46 PM
Dec 20, 2024
News Published
via Dark Reading·12:01 AM

Frequently Asked Questions

1

What is the severity of CVE-2024-53677?

CVE-2024-53677 has been classified as a critical vulnerability due to its potential for remote code execution.

2

How do I fix CVE-2024-53677?

To mitigate CVE-2024-53677, users should upgrade to Apache Struts version 6.4.0 or later.

3

What types of attacks can exploit CVE-2024-53677?

CVE-2024-53677 can be exploited through path traversal techniques to upload malicious files leading to remote code execution.

4

Which software versions are affected by CVE-2024-53677?

CVE-2024-53677 affects all versions of Apache Struts prior to 6.4.0.

5

Is CVE-2024-53677 under active exploitation?

Yes, CVE-2024-53677 is known to be actively exploited in the wild.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203