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

Critical 9.5 Published Updated

Attackers can bypass file upload checks to upload malicious files and execute remote code in applications using legacy Struts file upload logic.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-53677?

CVE-2024-53677 is a critical vulnerability in Apache Struts, published on 11 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Weakness: CWE-434

Which versions are affected by CVE-2024-53677?

2 open source packages ship an affected version, including org.apache.struts:struts2-core. It affects 1 product.

PackageAffectedFixed in
org.apache.struts:struts2-core MavenAll versions6.4.0
org.apache.struts:struts2-core MavenAll versions6.4.0

Products include Apache Struts.

How do I fix CVE-2024-53677?

Upgrade org.apache.struts:struts2-core to 6.4.0 or later.

Is CVE-2024-53677 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53677 exists.

Public exploit code: 18 proofs of concept on GitHub.

All Apache Struts vulnerabilities

Sources

Also known as CLSA-2025-1754006617, GHSA-43mq-6xmg-29vm.

Is CVE-2024-53677 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free