Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Network vector, no privileges or interaction required; AC:H because exploitation requires a specific upstream RFC 7578-compliant inspector; integrity-only impact via control bypass.
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Primary rating from NVD.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Lifecycle Timeline
4Blast Radius
ecosystem impact- 4 pypi packages depend on python-multipart (4 direct, 0 indirect)
Ecosystem-wide dependent count for version 0.0.30.
DescriptionNVD
Summary
parse_options_header parsed Content-Disposition (and Content-Type) headers with email.message.Message, which transparently applies RFC 2231/5987 decoding. The extended parameter syntax (filename*=charset'lang'value, name*=..., and the filename*0/filename*1 continuation form) is decoded and surfaced under the bare filename/name key, and overrides the plain parameter when both are present. RFC 7578 §4.2 explicitly forbids the filename* form in multipart/form-data.
Components that follow RFC 7578, or that do not implement RFC 2231/5987 decoding for multipart/form-data (WAFs, proxies, gateways), may interpret such a header differently. An attacker can exploit that difference to smuggle a different field name or filename past an upstream inspector to the backend.
Details
Given both a plain and an extended parameter, the extended value won. For example:
Content-Disposition: form-data; name="comment"; name*=utf-8''roleAn inspector following RFC 7578 sees the field comment, while the returned value was name=role. The same applies to filenames:
Content-Disposition: form-data; name="upload"; filename="safe.txt"; filename*=utf-8''evil.phpThe inspector sees safe.txt, while the returned value was filename=evil.php. Continuation parameters (filename*0, filename*1, and so on) were likewise reassembled into a filename invisible to a plain filename= match, and percent encoded sequences in the extended value were decoded (so ..%2F, %00, and similar appeared in the returned filename).
This affects the high level parse_options_header, FormParser, create_form_parser, and parse_form APIs, and reaches Starlette/FastAPI through request.form(), where the smuggled value is exposed as the form field name or UploadFile.filename.
Impact
This is an interpretation conflict (CWE-436) with other multipart/form-data parsers. An attacker able to submit multipart/form-data can present a different field name or filename to an upstream body inspecting component than the one delivered to the application. Concrete consequences depend on how the application uses these values, and may include bypassing a field name or filename based access/upload control, or, for an application that builds filesystem paths from the parsed filename without sanitization, path traversal via decoded ..%2F sequences. Decoded control bytes such as %00 can likewise cause confusion between an upstream validator and the backend. The File class applies os.path.basename, so file writing through it is not directly affected.
Mitigation
Upgrade to python-multipart 0.0.30 or later, which ignores RFC 2231/5987 extended parameters (name*, filename*, and their continuations) so the plain name/filename parameter remains authoritative. RFC 7578 §4.2 forbids filename* for multipart/form-data; name* and the continuation forms are dropped for the same reason, since they are not valid multipart/form-data parameters either.
AnalysisAI
Parameter smuggling in python-multipart below 0.0.30 allows unauthenticated network attackers to present a different field name or filename to an upstream WAF, proxy, or gateway than the value actually delivered to the backend application. The root cause is that parse_options_header delegates to Python's email.message.Message, which silently applies RFC 2231/5987 extended parameter decoding - a behavior explicitly forbidden for multipart/form-data by RFC 7578 §4.2 - causing the extended value to override the plain parameter and bypass inspection logic. Concrete downstream consequences include circumventing filename-based upload controls and, where applications construct filesystem paths from the parsed filename without sanitization, achieving path traversal via decoded percent sequences such as ..%2F or injecting null bytes (%00) to confuse validators. No public exploit has been identified and the vulnerability is not in CISA KEV; CVSS 3.7 with AC:H reflects that exploitation requires a specific upstream inspector in the deployment topology.
Technical ContextAI
python-multipart (pkg:pip/python-multipart) is a Python library for parsing multipart/form-data request bodies, widely used as a dependency of Starlette and FastAPI. The vulnerable code path in parse_options_header feeds raw Content-Disposition and Content-Type header values to Python's stdlib email.message.Message class (email.compat32), which transparently applies RFC 2231 and RFC 5987 extended parameter decoding. These RFCs define a charset-aware parameter syntax (e.g., filename*=utf-8''evil.php) intended for MIME email headers, not for multipart/form-data. RFC 7578 §4.2 explicitly prohibits the filename* form in multipart/form-data; the continuation forms filename*0, filename*1, and the name* variant are equally invalid in this context. Because email.message.Message resolves and merges these extended parameters under the bare name/filename key - and gives them precedence over the plain parameter - the library returns a decoded value that differs from what any RFC 7578-compliant parser upstream (WAF, API gateway, reverse proxy) would have read. The NVD CWE assignment is CWE-20 (Improper Input Validation), while the upstream GitHub Security Advisory cites CWE-436 (Interpretation Conflict), which is more precise: the flaw is not simply that input is unvalidated but that two components apply mutually incompatible RFCs to the same header, creating an exploitable semantic gap.
RemediationAI
Upgrade python-multipart to version 0.0.30 or later. The fix removes RFC 2231/5987 extended parameter support from Content-Disposition parsing entirely, making the plain name/filename parameter authoritative in conformance with RFC 7578 §4.2. The vendor advisory is at https://github.com/Kludex/python-multipart/security/advisories/GHSA-vffw-93wf-4j4q and the GHSA is GHSA-vffw-93wf-4j4q. For applications that cannot upgrade immediately, the primary compensating control is to sanitize parsed filenames before use: apply os.path.basename on UploadFile.filename (the File class already does this for direct file writes, but custom code handling the filename string may not), and reject or strip any null bytes or encoded traversal sequences before constructing filesystem paths. As a secondary measure, ensure upstream WAF or gateway rules perform allow-list validation on filename extensions after URL-decoding to reduce the window of bypass. Note that neither workaround addresses field name smuggling; only upgrading to 0.0.30 eliminates the root cause.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
Cross-user flow execution in Langflow (< 1.9.1) lets any authenticated API-key holder run another user's flow by passing
Same weakness CWE-20 – Improper Input Validation
View allSame technique Path Traversal
View allVendor StatusVendor
SUSE
Severity: Low| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.0 | Affected |
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| openSUSE Leap 16.0 | Affected |
| openSUSE Leap 15.6 | Affected |
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-38324
GHSA-vffw-93wf-4j4q