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-41835

CVE-2023-41835: Apache Struts Information Disclosure Flaw

CVE-2023-41835 is an information disclosure vulnerability in Apache Struts where multipart upload files persist in struts.multipart.saveDir after request denial. This article covers technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-41835 Overview

CVE-2023-41835 is a vulnerability in Apache Struts that affects the handling of multipart file upload requests. When a multipart request is processed and some of the fields exceed the configured maxStringLength limit, the uploaded files remain in the struts.multipart.saveDir directory even after the request has been denied. This incomplete cleanup behavior can lead to disk space exhaustion and denial of service conditions on affected systems.

Critical Impact

Attackers can exhaust disk space on vulnerable Apache Struts servers by repeatedly sending malformed multipart requests, causing uploaded files to accumulate indefinitely and potentially rendering applications unavailable.

Affected Products

  • Apache Struts versions prior to 2.5.32
  • Apache Struts versions prior to 6.1.2.2
  • Apache Struts versions prior to 6.3.0.1

Discovery Timeline

  • 2023-12-05 - CVE CVE-2023-41835 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2023-41835

Vulnerability Analysis

This vulnerability is classified under CWE-459 (Incomplete Cleanup), which describes a condition where a product does not properly clean up and remove temporary or supporting resources after they have been used. In the context of Apache Struts, the multipart request handler fails to delete uploaded files from the temporary storage directory when request validation fails due to field length constraints.

The vulnerability can be exploited remotely without authentication. The attack complexity is low, requiring only the ability to send HTTP multipart requests to the target server. While the vulnerability does not directly compromise confidentiality or integrity, it poses a significant availability risk through resource exhaustion.

Root Cause

The root cause lies in the incomplete error handling logic within the Apache Struts multipart request processing component. When the framework validates incoming multipart requests, it checks whether string fields exceed the maxStringLength configuration parameter. If this limit is exceeded, the request is rejected; however, the cleanup routine that should remove already-uploaded temporary files fails to execute properly, leaving orphaned files in the struts.multipart.saveDir directory.

Attack Vector

The attack vector is network-based and requires no privileges or user interaction. An attacker can craft malicious multipart HTTP requests containing:

  1. One or more file upload fields with actual file content
  2. String fields that exceed the configured maxStringLength limit

When the server processes these requests, it first saves the uploaded files to the temporary directory, then validates the string fields. Upon detecting the length violation, the request is rejected, but the temporary files persist on disk. By repeatedly sending such requests, an attacker can fill the available disk space, causing denial of service.

The exploitation mechanism involves sending HTTP multipart/form-data POST requests with oversized string parameters combined with file attachments. Each rejected request leaves behind orphaned files in the temporary upload directory. Since no authentication is required and the attack is trivially automated, an adversary can rapidly exhaust disk resources on the target system.

Detection Methods for CVE-2023-41835

Indicators of Compromise

  • Unusual growth of files in the struts.multipart.saveDir directory
  • High volume of HTTP 400/413 error responses for multipart requests
  • Disk space alerts on application servers running Apache Struts
  • Large numbers of temporary upload files with timestamps correlating to request denial events

Detection Strategies

  • Monitor the struts.multipart.saveDir directory for abnormal file accumulation
  • Implement log analysis rules to detect patterns of rejected multipart requests followed by disk space consumption
  • Configure web application firewall (WAF) rules to rate-limit multipart uploads from individual sources
  • Deploy endpoint detection solutions to alert on filesystem anomalies in application directories

Monitoring Recommendations

  • Set up alerts for disk usage thresholds on servers running Apache Struts applications
  • Implement periodic cleanup scripts for the multipart temporary directory as a defensive measure
  • Monitor HTTP access logs for patterns of multipart POST requests with high error rates
  • Enable detailed logging for the Struts multipart interceptor to capture rejected request details

How to Mitigate CVE-2023-41835

Immediate Actions Required

  • Upgrade Apache Struts to version 2.5.32, 6.1.2.2, or 6.3.0.1 or later immediately
  • Review and adjust maxStringLength configuration to align with application requirements
  • Implement periodic cleanup of the struts.multipart.saveDir directory until patches are applied
  • Consider implementing request rate limiting at the load balancer or WAF level

Patch Information

Apache has released security patches addressing this vulnerability. Users should upgrade to one of the following versions:

  • Struts 2.5.x branch: Upgrade to version 2.5.32 or later
  • Struts 6.1.x branch: Upgrade to version 6.1.2.2 or later
  • Struts 6.3.x branch: Upgrade to version 6.3.0.1 or later

For additional information, refer to the Apache Mailing List Thread and the OpenWall OSS-Security Discussion.

Workarounds

  • Implement a scheduled task to periodically purge orphaned files from the struts.multipart.saveDir directory
  • Configure disk quotas for the temporary upload directory to limit the impact of exploitation
  • Deploy WAF rules to reject multipart requests exceeding reasonable size thresholds
  • Monitor and alert on rapid file creation in the temporary upload directory
bash
# Example: Scheduled cleanup script for temporary upload directory
# Add to crontab to run every hour
0 * * * * find /path/to/struts/multipart/saveDir -type f -mmin +60 -delete

# Alternative: Set up disk quota (Linux)
# setquota -u struts_user 1G 2G 0 0 /path/to/upload/partition

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechApache Struts

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.22%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-459
  • Technical References
  • Apache Mailing List Thread

  • OpenWall OSS-Security Discussion

  • NetApp Security Advisory NTAP-20231013-0001
  • Related CVEs
  • CVE-2025-68493: Apache Struts XXE Vulnerability

  • CVE-2025-66675: Apache Struts DOS Vulnerability

  • CVE-2025-64775: Apache Struts DOS Vulnerability

  • CVE-2020-17530: Apache Struts RCE 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