Remote Code Execution (RCE) Affecting org.apache.struts:struts2-core package, versions [,7.0.0)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Remote Code Execution (RCE) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHESTRUTS-8496612
  • published12 Dec 2024
  • disclosed11 Dec 2024
  • creditShinsaku Nomura

Introduced: 11 Dec 2024

NewCVE-2024-53677  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade org.apache.struts:struts2-core to version 7.0.0 or higher.

Overview

org.apache.struts:struts2-core is a popular open-source framework for developing web applications in the Java programming language.

Affected versions of this package are vulnerable to Remote Code Execution (RCE) via manipulation of file upload parameters that enable path traversal. When using FileUploadInterceptor, uploading of a malicious file is possible, which may then be executed on the server.

Notes:

This is only exploitable if the application uses FileUploadInterceptor;

Version 6.4.0 deprecates FileUploadInterceptor, but to fix the vulnerability its use must be replaced by an instance of Action File Upload and the corresponding interceptor. FileUploadInterceptor has been removed in 7.0.0.

CVSS Scores

version 4.0
version 3.1