QID 731026

Date Published: 2023-12-14

QID 731026: Apache Struts2 Remote Code Execution (RCE) Vulnerability (S2-066) (Intrusive Check)

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 (Unauthenticated):
This is an intrusive detection. This QID tries to upload a file 'qualystest.txt' to a vulnerable Apache Struts installation. To upload the file this QID sends an HTTP POST request to the 'upload.action' endpoint. By default Apache Struts stores the file temporarily and deletes it seconds after.

Note: This QID can check limited number of directories to test the file upload vulnerability. Customers are advised to search and remove the qualystest.txt file after scanning.

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 731026

    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