The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-50164

CVE-2023-50164: Apache Struts RCE Vulnerability

CVE-2023-50164 is a remote code execution flaw in Apache Struts caused by file upload parameter manipulation enabling path traversal. This post covers technical details, affected versions, impact, and mitigation.

Published: February 11, 2026

CVE-2023-50164 Overview

CVE-2023-50164 is a critical path traversal vulnerability in Apache Struts that allows attackers to manipulate file upload parameters, enabling directory traversal attacks. Under certain circumstances, this vulnerability can be exploited to upload malicious files, which can then be leveraged to achieve Remote Code Execution (RCE) on affected systems.

Apache Struts is a widely-used open-source framework for developing Java web applications. Given its extensive deployment in enterprise environments, this vulnerability poses significant risk to organizations relying on vulnerable versions of the framework.

Critical Impact

Successful exploitation allows unauthenticated remote attackers to upload malicious files and execute arbitrary code on vulnerable Apache Struts servers, potentially leading to complete system compromise.

Affected Products

  • Apache Struts versions prior to 2.5.33
  • Apache Struts versions prior to 6.3.0.2
  • All web applications built on vulnerable Apache Struts versions

Discovery Timeline

  • 2023-12-07 - CVE-2023-50164 published to NVD
  • 2025-02-13 - Last updated in NVD database

Technical Details for CVE-2023-50164

Vulnerability Analysis

This vulnerability exists within the file upload functionality of Apache Struts. The framework fails to properly validate and sanitize file upload parameters, allowing attackers to manipulate path-related parameters during the file upload process. This improper handling enables path traversal sequences (such as ../) to escape intended upload directories.

The attack exploits weaknesses in how Struts processes multipart file upload requests. By crafting specially designed HTTP requests with manipulated filename parameters, an attacker can write files to arbitrary locations on the server's filesystem. When combined with the ability to control file contents, this creates a direct pathway to Remote Code Execution by uploading executable server-side code (such as JSP files) to web-accessible directories.

This vulnerability is classified under CWE-552 (Files or Directories Accessible to External Parties), highlighting the core issue of improper access control over file system resources. The vulnerability requires no authentication and can be exploited remotely over the network, making it particularly dangerous for internet-facing Struts applications.

Root Cause

The root cause of CVE-2023-50164 lies in insufficient input validation within the Apache Struts file upload mechanism. The framework fails to adequately sanitize user-controlled parameters that influence file storage paths during multipart form data processing. Specifically, the vulnerability allows path traversal sequences to bypass intended directory restrictions, enabling files to be written outside of designated upload directories.

The insufficient validation of upload parameters permits attackers to manipulate the destination path where uploaded files are stored, circumventing the intended security controls that should confine uploads to specific directories.

Attack Vector

The attack is carried out remotely over the network without requiring authentication. An attacker targets the file upload functionality of a Struts-based web application by crafting malicious HTTP multipart requests.

The exploitation process involves:

  1. Identifying a Struts application with file upload capabilities
  2. Crafting HTTP requests with manipulated file upload parameters containing path traversal sequences
  3. Uploading a malicious payload (such as a JSP web shell) that gets written to a web-accessible directory
  4. Accessing the uploaded malicious file through the web server to trigger code execution

Proof-of-concept exploits are publicly available, significantly lowering the barrier to exploitation. The Packet Storm security advisory and GitHub PoC repository provide detailed technical information on exploitation techniques.

Detection Methods for CVE-2023-50164

Indicators of Compromise

  • Unexpected files appearing in web-accessible directories, particularly JSP or other executable files
  • HTTP requests to file upload endpoints containing path traversal sequences (../, ..%2f, etc.) in filename parameters
  • Web shell artifacts or unauthorized executable files in application directories
  • Anomalous file system write operations to directories outside designated upload locations

Detection Strategies

  • Monitor HTTP traffic for multipart form requests containing path traversal patterns in Content-Disposition headers or filename fields
  • Implement web application firewall (WAF) rules to detect and block requests with directory traversal sequences in upload parameters
  • Deploy file integrity monitoring on web application directories to detect unauthorized file additions
  • Review web server access logs for requests to newly created files in unexpected locations

Monitoring Recommendations

  • Enable detailed logging for file upload operations including full request parameters and resulting file paths
  • Configure alerts for any file writes outside designated upload directories
  • Monitor for execution of newly created files in web-accessible paths
  • Implement network-level monitoring for POST requests with anomalous Content-Disposition values

How to Mitigate CVE-2023-50164

Immediate Actions Required

  • Upgrade Apache Struts immediately to version 2.5.33 or 6.3.0.2 or greater
  • Audit all Struts-based applications to identify vulnerable instances
  • Review web server directories for any unauthorized or suspicious files that may indicate prior compromise
  • Implement network segmentation to limit exposure of vulnerable applications while patching

Patch Information

Apache has released security patches addressing this vulnerability. Users are strongly recommended to upgrade to the following fixed versions:

  • Struts 2.x: Upgrade to version 2.5.33 or later
  • Struts 6.x: Upgrade to version 6.3.0.2 or later

For detailed information, refer to the Apache Security Advisory. Additional vendor guidance is available from the NetApp Security Advisory for environments running affected NetApp products.

Workarounds

  • Deploy a Web Application Firewall (WAF) with rules to block requests containing path traversal sequences in file upload parameters
  • Restrict file upload functionality to authenticated users only where possible
  • Implement strict whitelist validation on uploaded file types and names at the application level
  • Consider temporarily disabling file upload functionality for critical applications until patches can be applied
bash
# Example WAF rule pattern for ModSecurity to block path traversal in uploads
SecRule REQUEST_HEADERS:Content-Disposition "@rx \.\./" \
    "id:50164,phase:2,deny,status:403,msg:'CVE-2023-50164 Path Traversal Attempt'"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechApache Struts

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability92.86%

  • Known ExploitedYes
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-552
  • Technical References
  • Packet Storm Exploit

  • NetApp Security Advisory

  • OpenWall OSS-Security Update
  • Vendor Resources
  • Apache Thread Discussion
  • Related CVEs
  • CVE-2020-17530: Apache Struts RCE Vulnerability

  • CVE-2024-53677: Apache Struts File Upload RCE Vulnerability

  • CVE-2021-31805: Apache Struts RCE Vulnerability

  • CVE-2025-68493: Apache Struts XXE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English