# CVE-2023-50164: Apache Struts: File upload component had a directory traversal vulnerability

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 80.8%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-07T08:49:19.853Z
- Modified: 2026-06-17T06:39:13.613Z
- Also known as: GHSA-2j39-qcjm-428w
- Weaknesses: CWE-552
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: apache

## Description

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.

(As written by CVE List.)

## Affected

- org.apache.struts: from 2.0.0 up to 2.5.32; from 6.0.0 up to 6.3.0.1
- org.apache.struts:struts2-core (Maven): from 2.0.0 before 2.5.33; from 6.0.0 before 6.3.0.2
- apache struts: from 2.0.0 before 2.5.33; from 6.0.0 before 6.3.0.2

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <http://packetstormsecurity.com/files/176157/Struts-S2-066-File-Upload-Remote-Code-Execution.html> (exploit, third-party-advisory, vdb-entry, web)
- <https://lists.apache.org/thread/yh09b3fkf6vz5d6jdgrlvmg60lfwtqhj> (mailing-list, patch, vendor-advisory, web)
- <https://www.openwall.com/lists/oss-security/2023/12/07/1> (mailing-list, web)
- <https://security.netapp.com/advisory/ntap-20231214-0010/> (third-party-advisory, vdb-entry)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-50164> (advisory)
- <https://github.com/apache/struts/commit/162e29fee9136f4bfd9b2376da2cbf590f9ea163> (web)
- <https://github.com/apache/struts/commit/d8c69691ef1d15e76a5f4fcf33039316da2340b6> (web)
- <https://cwiki.apache.org/confluence/display/WW/S2-066> (web)
- <https://github.com/apache/struts> (package)
- <https://security.netapp.com/advisory/ntap-20231214-0010> (web)
- <http://www.openwall.com/lists/oss-security/2023/12/07/1> (web)

## Sources

- CVE List: [CVE-2023-50164](https://www.cve.org/CVERecord?id=CVE-2023-50164), CVE Terms of Use, modified 2025-03-14
- GitHub Advisory Database: [GHSA-2j39-qcjm-428w](https://github.com/advisories/GHSA-2j39-qcjm-428w), CC-BY-4.0, modified 2025-02-13
- NVD: [CVE-2023-50164](https://nvd.nist.gov/vuln/detail/CVE-2023-50164), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-50164 · Whole record: https://cve.day/CVE-2023-50164.json · Rebuilt by cve.day 2026-11-25T22:58:31.104Z
