QID 379106

Date Published: 2023-12-07

QID 379106: Apache Struts2 Remote Code Execution (S2-066)

Apache Struts is an open-source Model-View-Controller (MVC) framework for creating elegant, modern Java web applications.

An unauthenticated, remote attacker could exploit this vulnerability by manipulating file upload parameters to enable a path traversal condition. Uploading a malicious file by leveraging this vulnerability could lead to execution of malicious code on the targeted system.

Affected Software:
Struts 2.0.0 - Struts 2.3.37 (EOL)
Struts 2.5.0 - Struts 2.5.32
Struts 6.0.0 - Struts 6.3.0

QID Detection Logic (Unix): Linux: Detection relies on ps command and find command to locate struts jar file. Struts file name includes the version.
This QID for Linux authentication will check for all Apache struts affected versions including End-of-Life (EOL).

QID Detection Logic (Windows): This QID retrieves the Tomcat installation location from the registry and checks for the 'struts2-rest-showcase' application directory in the webapps for the struts jar file. Please note that this QID can check only the mentioned directory for the struts jar file. This QID supports only Tomcat 10.1, Tomcat 9.0 and Tomcat 8.5 installations.
This QID for Windows authentication will not check for Apache struts End Of Life (EOL) versions.

Successful exploitation allows an unauthenticated, remote attacker to execute arbitrary code on the targeted system.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as High - 6.8 severity.
  • Solution
    Customers are advised to upgrade Apache Struts to 2.5.33, 6.3.0.2 or greater. Please refer to the S2-066 advisory for more information pertaining to this vulnerability.

    CVEs related to QID 379106

    Software Advisories
    Advisory ID Software Component Link
    S2-066 URL Logo cwiki.apache.org/confluence/display/WW/S2-066

    © CVE.report 2026

    Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

    CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

    Free CVE JSON API cve.report/api

    CVE.report and Source URL Uptime Status status.cve.report