Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-24486: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Kludex python-multipart

0
High
VulnerabilityCVE-2026-24486cvecve-2026-24486cwe-22
Published: Tue Jan 27 2026 (01/27/2026, 00:34:06 UTC)
Source: CVE Database V5
Vendor/Project: Kludex
Product: python-multipart

Description

CVE-2026-24486 is a high-severity path traversal vulnerability in the python-multipart library versions prior to 0. 0. 22. It arises when the library is configured with non-default options UPLOAD_DIR and UPLOAD_KEEP_FILENAME=True, allowing attackers to craft malicious filenames that cause uploaded files to be written outside the intended directory. This can lead to arbitrary file write, impacting system integrity and potentially confidentiality and availability. No authentication or user interaction is required, and exploitation can be performed remotely via crafted multipart requests. The vulnerability has a CVSS score of 8. 6, indicating high severity. Users are advised to upgrade to version 0. 0.

AI-Powered Analysis

AILast updated: 01/27/2026, 01:05:39 UTC

Technical Analysis

The vulnerability identified as CVE-2026-24486 affects the python-multipart library, a streaming multipart parser used in Python applications to handle file uploads. The flaw is a path traversal vulnerability (CWE-22) that occurs when the library is configured with the non-default options UPLOAD_DIR and UPLOAD_KEEP_FILENAME=True. Under these conditions, an attacker can craft a malicious filename in a multipart upload request that includes directory traversal sequences (e.g., ../) to escape the designated upload directory. This allows the attacker to write files to arbitrary locations on the filesystem, potentially overwriting critical files or placing malicious executables. The vulnerability does not require any authentication or user interaction, making it remotely exploitable over the network. The CVSS v3.1 base score of 8.6 reflects the ease of exploitation (network vector, low attack complexity), no privileges required, and the significant impact on integrity and some impact on availability and confidentiality. The vulnerability was patched in python-multipart version 0.0.22 by properly sanitizing and restricting file paths to prevent directory traversal. No known exploits are reported in the wild yet, but the high severity and ease of exploitation make it a critical risk for applications using vulnerable versions. Organizations relying on python-multipart for handling file uploads should upgrade promptly or disable the UPLOAD_KEEP_FILENAME option to mitigate the vulnerability.

Potential Impact

For European organizations, this vulnerability poses a significant risk especially to web applications and services that accept file uploads using python-multipart. Successful exploitation can lead to arbitrary file writes outside intended directories, enabling attackers to overwrite configuration files, deploy web shells, or place malware, thereby compromising system integrity and potentially leading to full system compromise. Confidential data could be exposed if sensitive files are overwritten or accessed. Availability could be impacted if critical system files are corrupted or replaced. The lack of authentication and user interaction requirements increases the risk of automated exploitation attempts. Sectors such as finance, healthcare, government, and critical infrastructure that rely on Python-based web services are particularly vulnerable. The vulnerability could also be leveraged as a foothold for lateral movement within networks, escalating the overall impact. Given the widespread use of Python and open-source libraries in Europe, the threat surface is considerable.

Mitigation Recommendations

To mitigate this vulnerability, organizations should immediately upgrade python-multipart to version 0.0.22 or later, where the path traversal issue is fixed. If upgrading is not immediately feasible, disable the UPLOAD_KEEP_FILENAME configuration option to prevent the library from preserving user-supplied filenames, thereby avoiding the path traversal vector. Additionally, implement strict input validation and sanitization on filenames at the application level to reject any path traversal sequences or suspicious characters. Employ filesystem permissions to restrict the write access of the application process to only the intended upload directories, minimizing the impact of any potential exploitation. Use application-layer security controls such as web application firewalls (WAFs) to detect and block malicious multipart requests containing directory traversal payloads. Regularly audit and monitor file upload directories and logs for unusual activity. Finally, incorporate secure coding practices and dependency management to promptly identify and patch vulnerable libraries.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-01-23T00:38:20.548Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69780bf04623b1157cc7aac1

Added to database: 1/27/2026, 12:50:56 AM

Last enriched: 1/27/2026, 1:05:39 AM

Last updated: 1/27/2026, 3:08:33 AM

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats