Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2026-24486

CVE-2026-24486: Python-Multipart Path Traversal Flaw

CVE-2026-24486 is a path traversal vulnerability in Python-Multipart that allows attackers to write files to arbitrary filesystem locations. This article covers the technical details, affected versions, and mitigation.

Published: January 30, 2026

CVE-2026-24486 Overview

CVE-2026-24486 is a Path Traversal vulnerability affecting Python-Multipart, a streaming multipart parser library for Python. This vulnerability exists in versions prior to 0.0.22 when the application uses non-default configuration options UPLOAD_DIR combined with UPLOAD_KEEP_FILENAME=True. An attacker can exploit this flaw to write uploaded files to arbitrary locations on the filesystem by crafting a malicious filename containing directory traversal sequences.

Critical Impact

Attackers can write arbitrary files to any location on the filesystem, potentially leading to remote code execution through webshell uploads, configuration file overwrites, or compromise of sensitive system files.

Affected Products

  • Python-Multipart versions prior to 0.0.22
  • Applications using UPLOAD_DIR with UPLOAD_KEEP_FILENAME=True configuration
  • Python web frameworks utilizing python-multipart for file uploads (including FastAPI and Starlette)

Discovery Timeline

  • 2026-01-27 - CVE CVE-2026-24486 published to NVD
  • 2026-01-27 - Last updated in NVD database

Technical Details for CVE-2026-24486

Vulnerability Analysis

This Path Traversal vulnerability (CWE-22) occurs due to insufficient sanitization of user-supplied filenames during multipart file upload processing. When an application is configured with UPLOAD_DIR to specify an upload destination and UPLOAD_KEEP_FILENAME=True to preserve original filenames, the library fails to properly validate and sanitize the filename before constructing the destination path. This allows an attacker to include directory traversal sequences (such as ../) in the filename, enabling file writes outside the intended upload directory.

The vulnerability is exploitable over the network without requiring authentication or user interaction. An attacker who successfully exploits this vulnerability can achieve high impact on system integrity by writing files to sensitive locations, potentially overwriting configuration files, injecting malicious scripts, or planting webshells for persistent access.

Root Cause

The root cause lies in the File class initialization within multipart.py, where the original filename from the multipart request is processed without extracting the basename first. The code directly uses os.path.splitext(file_name) on the user-supplied filename, preserving any path components including traversal sequences. This allows filenames like ../../../etc/cron.d/malicious to escape the designated upload directory.

Attack Vector

The attack vector is network-based, requiring an attacker to send a specially crafted multipart HTTP request to a vulnerable application. The malicious request contains a file upload with a manipulated filename field that includes path traversal sequences. When the vulnerable application processes this request with the affected configuration options enabled, the file is written to the attacker-controlled path relative to the upload directory.

python
# Security patch from python_multipart/multipart.py
# Source: https://github.com/Kludex/python-multipart/commit/9433f4bbc9652bdde82bbe380984e32f8cfc89c4
 
         # Split the extension from the filename.
         if file_name is not None:
-            base, ext = os.path.splitext(file_name)
+            # Extract just the basename to avoid directory traversal
+            basename = os.path.basename(file_name)
+            base, ext = os.path.splitext(basename)
             self._file_base = base
             self._ext = ext

The patch introduces os.path.basename() to extract only the filename component, stripping any directory path elements including traversal sequences before processing the filename.

Detection Methods for CVE-2026-24486

Indicators of Compromise

  • Uploaded files appearing outside the configured UPLOAD_DIR directory
  • Web server logs showing multipart requests with filenames containing ../ or ..\\ sequences
  • Unexpected files in system directories such as /etc/cron.d/, web root directories, or configuration folders
  • New or modified files in sensitive locations with timestamps correlating to file upload activity

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block multipart requests containing path traversal sequences in filename fields
  • Monitor file system activity for file creation events outside designated upload directories
  • Deploy SentinelOne endpoint protection to detect and alert on suspicious file writes to sensitive system paths
  • Enable detailed logging of multipart request parameters including filenames at the application layer

Monitoring Recommendations

  • Configure file integrity monitoring (FIM) on critical system directories to detect unauthorized file modifications
  • Set up alerts for HTTP requests containing encoded or raw path traversal patterns (../, ..%2f, %2e%2e/)
  • Monitor python-multipart library versions across your application inventory to identify vulnerable deployments
  • Review application configurations for instances of UPLOAD_KEEP_FILENAME=True combined with UPLOAD_DIR settings

How to Mitigate CVE-2026-24486

Immediate Actions Required

  • Upgrade Python-Multipart to version 0.0.22 or later immediately
  • Audit existing applications for usage of the vulnerable configuration combination (UPLOAD_DIR with UPLOAD_KEEP_FILENAME=True)
  • Review uploaded files for evidence of path traversal exploitation attempts
  • Implement additional input validation at the application layer as defense-in-depth

Patch Information

The vulnerability has been addressed in Python-Multipart version 0.0.22. The fix introduces basename extraction using os.path.basename() before processing filenames, effectively stripping any directory components from user-supplied filenames. Users should upgrade using pip:

For detailed information about the patch, see the GitHub Security Advisory GHSA-wp53-j4wj-2cfg and the GitHub Release Version 0.0.22.

Workarounds

  • Disable UPLOAD_KEEP_FILENAME=True in project configurations and use randomly generated filenames instead
  • Implement application-level filename sanitization using os.path.basename() before passing filenames to python-multipart
  • Use a separate restricted filesystem or container for file uploads to limit the impact of potential traversal attacks
  • Apply strict file permission controls on the upload directory to prevent writes to parent directories
bash
# Configuration example
# Upgrade python-multipart to patched version
pip install python-multipart>=0.0.22

# Verify installed version
pip show python-multipart | grep Version

# Alternative: If upgrade is not immediately possible, modify application configuration
# Set UPLOAD_KEEP_FILENAME=False to use generated filenames instead of user-supplied ones

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechPython Multipart

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Update

  • GitHub Release Version 0.0.22

  • GitHub Security Advisory GHSA-wp53-j4wj-2cfg
  • Latest CVEs
  • CVE-2026-25874: LeRobot RCE Vulnerability

  • CVE-2026-41272: Flowise LLM Builder SSRF Vulnerability

  • CVE-2026-41268: Flowise RCE Vulnerability

  • CVE-2026-41265: Flowise Airtable Agent 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