QID 150774

Date Published: 2023-12-19

QID 150774: Apache Struts2 Remote Code Execution (RCE) Vulnerability (CVE-2023-50164) (Intrusive Check)

Apache Struts is a free, open-source, MVC framework for creating elegant, modern Java web applications.

In affected versions of Apache Struts 2, 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 (RCE).

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

QID Detection Logic (Unauthenticated):
This QID sends HTTP POST request to ".action" endpoint and tries to upload 'Qualyswas.txt' and 'Qualyswas.jsp' file using Path traversal payloads such as "../../" "../webapps/" and "../".

NOTE: This is an intrusive detection which uploads files on vulnerable instance of Apache Struts. Once the scanning is completed, customers are advised to search and remove 'Qualyswas.txt' and 'Qualyswas.jsp' from the Application server.

Successful exploitation of this vulnerability could allow a remote attacker to upload malicious files and execute arbitrary code on the target system.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as Critical - 10 severity.
  • Solution
    Customers are advised to upgrade to Apache Struts version 2.5.33, 6.3.0.2 or later to remediate this vulnerability. For more information pertaining to this vulnerability please refer Apache Struts Security Bulletin S2-066.

    CVEs related to QID 150774

    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