cve.bz

CVE-2026-24486 fastapiexpert python-multipart: Path traversal

7.5 highExploitEPSS 2.2%Fix available

High (7.5) in fastapiexpert python-multipart. EPSS 2.2% estimated probability of exploitation activity in the next 30 days. Fixed in python-multipart 0.0.22.

On this page
Python-Multipart is a streaming multipart parser for Python. Prior to version 0.0.22, a Path Traversal vulnerability exists when using non-default configuration options `UPLOAD_DIR` and `UPLOAD_KEEP_FILENAME=True`. An attacker can write uploaded files to arbitrary locations on the filesystem by crafting a malicious filename. Users should upgrade to version 0.0.22 to receive a patch or, as a workaround, avoid using `UPLOAD_KEEP_FILENAME=True` in project configurations.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
2.2% (unchanged from 2.2% a week ago; 2.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 83rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-01-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-24486 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-24486?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-24486?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-24486 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
fastapiexpert:python-multipartbefore 0.0.22

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wp53-j4wj-2cfgPyPIpython-multipart<0.0.220.0.22
PYSEC-2026-1852PyPIpython-multipart<0.0.220.0.22

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12python-multipartno fix listedDEBIAN-CVE-2026-24486
Debian13python-multipart0.0.20-1.1~deb13u1DEBIAN-CVE-2026-24486
Debian14python-multipart0.0.20-1.1DEBIAN-CVE-2026-24486
Ubuntu25.10, 26.04:LTS, 26.10python-multipartno fix listedUBUNTU-CVE-2026-24486
UbuntuPro:22.04:LTSpython-multipart0.0.5-2ubuntu0.1~esm1UBUNTU-CVE-2026-24486 USN-8027-1
UbuntuPro:24.04:LTSpython-multipart0.0.9-1ubuntu0.1~esm1UBUNTU-CVE-2026-24486 USN-8027-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-python-multipart0.0.20-160000.3.1SUSE-SU-2026:20188-1
openSUSELeap 15.6python-python-multipart0.0.9-150600.3.6.1SUSE-SU-2026:0307-1
openSUSELeap 16.0python-python-multipart0.0.20-160000.3.1openSUSE-SU-2026:20125-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

To mitigate this vulnerability, avoid enabling the `UPLOAD_KEEP_FILENAME=True` configuration option in applications using `python-multipart`. This option, when used with `UPLOAD_DIR`, allows an attacker to write files to arbitrary locations. Disabling or not configuring `UPLOAD_KEEP_FILENAME=True` prevents the path traversal vulnerability.

ProductPackageStateAdvisory
Red Hat AI Inference Server 3.2rhaiis/vllm-cuda-rhel9:1772160593Fixed 2026-02-27RHSA-2026:3461
Red Hat AI Inference Server 3.2rhaiis/vllm-rocm-rhel9:1772160625Fixed 2026-02-27RHSA-2026:3462
Red Hat Ansible Automation Platform 2.6ansible-automation-platform-26/lightspeed-chatbot-rhel9:1772204398Fixed 2026-03-06RHSA-2026:3960
Red Hat Ansible Automation Platform 2.6ansible-automation-platform-26/mcp-tools-rhel9:1772429277Fixed 2026-03-06RHSA-2026:3960
Red Hat OpenShift AI 2.25rhoai/odh-feature-server-rhel9:1776338381Fixed 2026-04-23RHSA-2026:10184
Red Hat OpenShift AI 2.25rhoai/odh-vllm-cpu-rhel9:1776259063Fixed 2026-04-23RHSA-2026:10184
Red Hat OpenShift AI 2.25rhoai/odh-vllm-gaudi-rhel9:1772093278Fixed 2026-03-04RHSA-2026:3782
Red Hat OpenShift AI 2.25rhoai/odh-vllm-cuda-rhel9:1783998774Fixed 2026-07-21RHSA-2026:42644
Red Hat OpenShift AI 2.25rhoai/odh-vllm-rocm-rhel9:1783998857Fixed 2026-07-21RHSA-2026:42644
Red Hat OpenShift AI 3.3rhoai/odh-vllm-cpu-rhel9:1778264363Fixed 2026-05-20RHSA-2026:19712
Lightspeed Corelightspeed-core/lightspeed-stack-rhel9Affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-ocp-rag-rhel9Not affected
OpenShift Lightspeedopenshift-lightspeed/lightspeed-service-api-rhel9Affected
Red Hat AI Inference Serverrhaiis-preview/vllm-cuda-rhel9Affected
Red Hat AI Inference Serverrhaiis/vllm-spyre-rhel9Affected
Red Hat AI Inference Serverrhaiis/vllm-tpu-rhel9Affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/de-minimal-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/de-minimal-rhel9Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/de-supported-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/de-supported-rhel9Not affected
46 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-24486.

Public exploits

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON