Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Kludex | python-multipart | < 0.0.22 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-multipart | 0.0.20-1.1 | — |
| Debian 13 | python-multipart | 0.0.20-1.1~deb13u1 | — |
| Debian 12 | python-multipart | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | python-multipart | No fix yet | — |
| Ubuntu 26.04 LTS | python-multipart | No fix yet | — |
| Ubuntu 25.10 | python-multipart | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | python-multipart | 0.0.9-1ubuntu0.1~esm1 | USN-8027-1 |
| Ubuntu Pro 22.04 LTS | python-multipart | 0.0.5-2ubuntu0.1~esm1 | USN-8027-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | python-python-multipart | 0.0.20-160000.3.1 | SUSE-SU-2026:20188-1 |
| SLES 16.0 | python-python-multipart | 0.0.20-160000.3.1 | SUSE-SU-2026:20188-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 16.0 | python-python-multipart | 0.0.20-160000.3.1 | openSUSE-SU-2026:20125-1 |
| openSUSE Leap 15.6 | python-python-multipart | 0.0.9-150600.3.6.1 | SUSE-SU-2026:0307-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | airflow-3 | 3.1.6-r4 | — |
| Wolfi rolling | open-webui | 0.8.3-r0 | — |
| Wolfi rolling | py3-semgrep | 1.150.0-r0 | — |
| Wolfi rolling | reflex | 0.8.27-r0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Python-Multipart 0.0.22 - Path Traversal EDB-52543 · webapps · Apr 30, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | python-multipart | < 0.0.22 | 0.0.22 | GHSA-wp53-j4wj-2cfg |
Advisories 5
- WID-SEC-2026-3046 IBM Concert: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 10, 2026
- USN-8027-1 python-multipart vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- openSUSE-SU-2026:20125-1 Security update for python-python-multipart SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:20188-1 Security update for python-python-multipart SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2026:0307-1 Security update for python-python-multipart SUSE / openSUSE Security Updates · Mar 23, 2026