{"answers":{"affected":"4 open source packages ship an affected version, including org.apache.struts:struts2-core. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-50164 exists.","fix":"Upgrade org.apache.struts:struts2-core to a fixed version for your release line: 2.5.33 or 6.3.0.2.","what":"CVE-2023-50164 is a critical path traversal vulnerability in Apache Struts, published on 7 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-50164 and fix it if it is affected.\n\nWhat it is: CVE-2023-50164 is a critical path traversal vulnerability in Apache Struts, published on 7 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-50164 exists.\n\nAffected packages and fixed versions:\n- org.apache.struts:struts2-core (Maven): affected from 2.0.0; fixed in 2.5.33\n- org.apache.struts:struts2-core (Maven): affected from 2.0.0; fixed in 2.5.33\n- org.apache.struts:struts2-core (Maven): affected from 6.0.0; fixed in 6.3.0.2\n- org.apache.struts:struts2-core (Maven): affected from 6.0.0; fixed in 6.3.0.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-50164/ (Markdown: https://insights.sbomify.com/CVE-2023-50164/index.md)","id":"CVE-2023-50164","markdown":"https://insights.sbomify.com/CVE-2023-50164/index.md","name":"CVE-2023-50164","record":{"aliases":["GHSA-2j39-qcjm-428w"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Java web framework","requires_auth":"none","summary":"Attackers can exploit directory traversal in file uploads to upload malicious files and execute remote code, requiring an upgrade to patched Struts versions.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"struts","vendor":"apache"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-552","name":"Files or Directories Accessible to External Parties"}],"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.\nUsers are recommended to upgrade to versions Struts 2.5.33 or Struts 6.3.0.2 or greater to fix this issue.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2023-12-13","github_poc":15,"max_poc_stars":84,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-12-13T09:31:36Z","kind":"github_poc","ref":"https://github.com/jakabakos/CVE-2023-50164-Apache-Struts-RCE","stars":84,"title":"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)."},{"date":"2023-12-17T14:18:54Z","kind":"github_poc","ref":"https://github.com/dwisiswant0/cve-2023-50164-poc","stars":57,"title":"Proof of Concept for Path Traversal in Apache Struts (\"CVE-2023-50164\")"},{"date":"2023-12-20T08:46:19Z","kind":"github_poc","ref":"https://github.com/Trackflaw/CVE-2023-50164-ApacheStruts2-Docker","stars":6,"title":"Vulnerable docker container for Apache Struts 2 RCE CVE-2023-50164"},{"date":"2023-12-30T21:37:08Z","kind":"github_poc","ref":"https://github.com/snyk-labs/CVE-2023-50164-POC","stars":6,"title":null},{"date":"2023-12-15T21:19:51Z","kind":"github_poc","ref":"https://github.com/bcdannyboy/CVE-2023-50164","stars":4,"title":"A scanning utility and PoC for CVE-2023-50164"},{"date":"2024-11-20T16:50:24Z","kind":"github_poc","ref":"https://github.com/Trackflaw/CVE-2024-10924-Wordpress-Docker","stars":3,"title":"Vulnerable docker container for Really Simple Security (Free, Pro, and Pro Multisite) 9.0.0 – 9.1.1.1 – Authentication Bypass CVE-2023-50164"},{"date":"2024-01-12T09:34:57Z","kind":"github_poc","ref":"https://github.com/sunnyvale-it/CVE-2023-50164-PoC","stars":2,"title":"CVE-2023-50164 (Apache Struts path traversal to RCE vulnerability) - Proof of Concept"},{"date":"2023-12-18T08:24:26Z","kind":"github_poc","ref":"https://github.com/helsecert/cve-2023-50164","stars":1,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Apache Struts: File upload component had a directory traversal vulnerability","id":"CVE-2023-50164","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"apache:struts","products":["apache:struts"],"type":"path_traversal","year":"2023"},"n_packages":4,"n_references":4,"next":{"headline":"Server-side request forgery in Pega Platform","id":"CVE-2023-50165"},"packages":[{"ecosystem":"Maven","fixed":["2.5.33"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.struts:struts2-core","purl":null,"source":"GHSA-2j39-qcjm-428w"},{"ecosystem":"Maven","fixed":["2.5.33"],"introduced":["2.0.0"],"last_affected":[],"package":"org.apache.struts:struts2-core","purl":"pkg:maven/org.apache.struts/struts2-core","source":"GHSA-2j39-qcjm-428w"},{"ecosystem":"Maven","fixed":["6.3.0.2"],"introduced":["6.0.0"],"last_affected":[],"package":"org.apache.struts:struts2-core","purl":null,"source":"GHSA-2j39-qcjm-428w"},{"ecosystem":"Maven","fixed":["6.3.0.2"],"introduced":["6.0.0"],"last_affected":[],"package":"org.apache.struts:struts2-core","purl":"pkg:maven/org.apache.struts/struts2-core","source":"GHSA-2j39-qcjm-428w"}],"prev":{"headline":"SQL injection in n/a","id":"CVE-2023-50162"},"products":["Apache Struts"],"published":"2023-12-07","related":[{"cvss_score":9.8,"headline":"Apache Struts Remote Code Execution","id":"CVE-2020-17530","kev_date_added":"2021-11-03","published":"2020-12-11"},{"cvss_score":9.8,"headline":"Apache Struts 1 Improper Input Validation","id":"CVE-2017-9791","kev_date_added":"2022-02-10","published":"2017-07-10"},{"cvss_score":9.8,"headline":"Apache Struts Remote Code Execution","id":"CVE-2017-5638","kev_date_added":"2021-11-03","published":"2017-03-11"},{"cvss_score":9.8,"headline":"Apache Struts 2 Improper Input Validation","id":"CVE-2012-0391","kev_date_added":"2022-01-21","published":"2012-01-08"},{"cvss_score":8.1,"headline":"Apache Struts Remote Code Execution","id":"CVE-2018-11776","kev_date_added":"2021-11-03","published":"2018-08-22"},{"cvss_score":8.1,"headline":"Apache Struts Deserialization of Untrusted Data","id":"CVE-2017-9805","kev_date_added":"2021-11-03","published":"2017-09-15"},{"cvss_score":8.1,"headline":"Apache Struts Command Injection","id":"CVE-2016-3081","kev_date_added":"2026-10-08","published":"2016-04-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-14","vendors":["Apache Software Foundation"]},"summary":"Attackers can exploit directory traversal in file uploads to upload malicious files and execute remote code, requiring an upgrade to patched Struts versions.","url":"https://insights.sbomify.com/CVE-2023-50164/"}