CVE-2024-53677: Apache Struts2 Core Critical File Upload Logic Flaw

Summary

11/12/2024
Yes i
Critical
9.8

CVE-2024-53677: Apache Struts file upload logic is flawed. Affects org.apache.struts:struts2-core versions < 6.4.0. Fixed in 6.4.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Apache Struts is a popular open-source framework for building web applications in Java. It provides a robust set of features for developing enterprise-level applications, including MVC architecture, extensibility, and integration with various technologies. However, certain versions of Apache Struts are vulnerable to a critical flaw in their file upload logic, which can lead to severe security risks.

Vulnerability Detail

The vulnerability in Apache Struts arises from flawed file upload logic, which can be exploited by attackers to upload malicious files. This issue affects versions from 2.0.0 up to, but not including, 6.4.0. If exploited, it can lead to unauthorized access to sensitive data, potential system compromise, and other severe ramifications. The flaw is categorized under CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) and CWE-434 (Unrestricted Upload of File with Dangerous Type).

How To Fix

Latest published version: 7.4.0 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.4.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, it is advisable to disable file uploads until the upgrade can be performed. This can be done by modifying the application configuration to restrict file upload functionalities.

Conclusion

The Apache Struts file upload logic flaw (CVE-2024-53677) poses a critical security risk to applications using affected versions. It is essential for users to upgrade to version 6.4.0 or later to mitigate this vulnerability and protect their applications from potential exploitation.

See every vulnerability recorded for org.apache.struts:struts2-core →

Share this vulnerability

FAQ

The vulnerability is a flaw in the file upload logic of Apache Struts that allows attackers to upload malicious files.

Versions from 2.0.0 up to, but not including, 6.4.0 are affected by this vulnerability.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Without requiring access to the code or installation, Vulert uses just the pom.xml file. You can also check if your application is affected using the Vulert playground at Vulert Scanner.

Failure to address this vulnerability can lead to unauthorized access, data breaches, and potential system compromise.

Yes, upgrading to Apache Struts version 6.4.0 or later will patch this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.struts:struts2-core.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 7.4.0 as of 22 Oct 2026

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

6.4.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback