CVE-2023-50164
Apache Struts: File upload component had a directory traversal vulnerability
- Published
- Dec 7, 2023
- Updated
- Mar 14, 2025
- Assigning CNA
- apache
- Evidence observed
- Aug 8, 2026
Primary CVSS
nvd · CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HHigh · next 30 days
- Percentile
- 99.6%
- Model date
- Nov 6, 2026
EPSS is a statistical estimate, not a certainty or a measure of impact. Combine it with CVSS, KEV status, exposure and your environment.
Summary
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. Users are recommended to upgrade to versions Struts 2.5.33 or Struts 6.3.0.2 or greater to fix this issue.
Sources
struts2/s2-066
Struts2 S2-066 Upload Path Traversal (CVE-2023-50164)
Vulhub vulnerability labsDeclared conditions
- lab image version: vulhub/struts2:s2-066(struts2/s2-066/docker-compose.yml:services.struts2.image)
- CVE-2023-50164Analysis-Exploit
CVE-2023-50164 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. Users are recommended to upgrade to versions Struts 2.5.33 or Struts 6.3.0.2 or greater to fix this issue.
A scanning utility and PoC for CVE-2023-50164
Proof of Concept for Path Traversal in Apache Struts ("CVE-2023-50164")
- cve-2023-50164Detection
Detection scripts for CVE-2023-50164 in Apache Struts2, providing PowerShell and Bash tools to scan for vulnerable versions across file systems and archives.
A critical security vulnerability, identified as CVE-2023-50164 (CVE: 9.8) was found in Apache Struts, allowing attackers to manipulate file upload parameters that can potentially lead to unauthorized path traversal and remote code execution (RCE).
Proof-of-concept for CVE-2023-50164 (Apache Struts 2), originally by jakabakos and adapted for the HTB Strutted lab environment. For educational use only.
CVE-2023-50164 PoC Application & Exploit script
- CVE-2023-50164Exploit
Educational exploit for CVE-2023-50164 (Apache Struts 2) demonstrating path traversal and remote code execution via malicious file upload, designed for HackTheBox lab environments.
Proof-of-concept exploit for CVE-2023-50164, a path traversal vulnerability in Apache Struts leading to remote code execution. Includes vulnerable and patched demo environments for testing and learning.
CVE-2023-50164 (Apache Struts path traversal to RCE vulnerability) - Proof of Concept
Vulnerable docker container for Apache Struts 2 RCE CVE-2023-50164
Demonstrates detection of CVE-2023-50164 (Apache Struts RCE) with a simple Java app, intended for security testing and educational purposes.
Python-based proof-of-concept exploit for CVE-2023-50164, targeting a critical remote code execution vulnerability in Apache Struts2 for security testing and validation.
Dockerized vulnerable Apache Struts application for testing CVE-2023-50164 remote code execution, with build and run instructions for security research and practice.
Responsible use
Use vulnerability information only on systems you own or are authorized to test. Kitploit links to public research metadata and does not store exploit code or malicious payloads.