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
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.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
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