CVE-2026-53537

Python-Multipart is a streaming multipart parser for Python. Prior to 0.0.30, 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. This vulnerability is fixed in 0.0.30.
Configurations

Configuration 1 (hide)

cpe:2.3:a:fastapiexpert:python-multipart:*:*:*:*:*:python:*:*

History

25 Oct 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) Python-Multipart es un analizador multipart de streaming para Python. Antes de la versión 0.0.30, parse_options_header analizaba los encabezados Content-Disposition (y Content-Type) con email.message.Message, que aplica de forma transparente la decodificación RFC 2231/5987. La sintaxis de parámetro extendida (filename=charset’lang’value, name=..., y la forma de continuación filename0/filename1) se decodifica y se expone bajo la clave filename/name simple, y anula el parámetro simple cuando ambos están presentes. RFC 7578 §4.2 prohíbe explícitamente la forma filename en multipart/form-data. Los componentes que siguen RFC 7578, o que no implementan la decodificación RFC 2231/5987 para multipart/form-data (WAFs, proxies, gateways), pueden interpretar dicho encabezado de manera diferente. Un atacante puede explotar esa diferencia para introducir un nombre de campo o nombre de archivo diferente más allá de un inspector ascendente hacia el backend. Esta vulnerabilidad está corregida en la versión 0.0.30.

Information

Published : 2026-06-22 18:16

Updated : 2026-10-25 23:10


NVD link : CVE-2026-53537

Mitre link : CVE-2026-53537

CVE.ORG link : CVE-2026-53537


JSON object : View

Products Affected

fastapiexpert

  • python-multipart
CWE
CWE-20

Improper Input Validation

CWE-436

Interpretation Conflict