| Name | CVE-2026-24486 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 1126557 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| python-multipart (PTS) | bullseye | 0.0.5-2 | vulnerable |
| bookworm | 0.0.5-3 | vulnerable | |
| trixie | 0.0.20-1 | vulnerable | |
| forky | 0.0.20-1.1 | fixed | |
| sid | 0.0.22-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| python-multipart | source | (unstable) | 0.0.20-1.1 | 1126557 |
[trixie] - python-multipart <no-dsa> (Minor issue; will be fixed via point release)
[bookworm] - python-multipart <no-dsa> (Minor issue)
[bullseye] - python-multipart <postponed> (Minor issue)
https://github.com/Kludex/python-multipart/security/advisories/GHSA-wp53-j4wj-2cfg
Fixed by: https://github.com/Kludex/python-multipart/commit/9433f4bbc9652bdde82bbe380984e32f8cfc89c4 (0.0.22)
Followup for test: https://github.com/Kludex/python-multipart/commit/0fb59a9df0f273bfde99740b302ccb2ae45e2b8a (0.0.22)