Skip to content
Heist/ feed
Back to feed
High

Python-Multipart has Arbitrary File Write via Non-Default Configuration

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-24486
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 17:47 UTC · Revision 1

Source evidence

Python-Multipart has Arbitrary File Write via Non-Default Configuration

core-osv · Original source

Published 27 Jan 2026, 00:34 UTC

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.

osv:CVE-2026-24486
Complete source record
{
  "id": "92a20190610cf85467b407c61959fc417c5a2e2ad6bdb7dec7a57d7127f754a7",
  "url": "https://osv.dev/vulnerability/CVE-2026-24486",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Python-Multipart has Arbitrary File Write via Non-Default Configuration",
    "summary": "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.",
    "evidence": "osv:CVE-2026-24486",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-24486",
      "aliases": [
        "CVE-2026-24486",
        "GHSA-wp53-j4wj-2cfg",
        "PYSEC-2026-1852"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/kludex/python-multipart",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "bea7bbb2904da8ce39123a845088dc72464eaddf"
                },
                {
                  "fixed": "9433f4bbc9652bdde82bbe380984e32f8cfc89c4"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:fastapiexpert:python-multipart:*:*:*:*:*:python:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.0.22"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "9433f4bbc9652bdde82bbe380984e32f8cfc89c4"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "bea7bbb2904da8ce39123a845088dc72464eaddf"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "0.0.22"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.0.21",
            "0.0.20",
            "0.0.19",
            "0.0.18",
            "0.0.17",
            "0.0.16",
            "0.0.15",
            "0.0.14",
            "0.0.13",
            "0.0.12",
            "0.0.11",
            "0.0.10",
            "0.0.9",
            "0.0.8",
            "0.0.7",
            "0.0.6",
            "0.0.5",
            "0.0.4",
            "0.0.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-24486.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:31.245079494Z",
      "provider": "osv",
      "references": [
        "https://github.com/Kludex/python-multipart/releases/tag/0.0.22",
        "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24486.json",
        "https://access.redhat.com/errata/RHSA-2026:10184",
        "https://access.redhat.com/errata/RHSA-2026:1504",
        "https://access.redhat.com/errata/RHSA-2026:19712",
        "https://access.redhat.com/errata/RHSA-2026:3461",
        "https://access.redhat.com/errata/RHSA-2026:3462",
        "https://access.redhat.com/errata/RHSA-2026:3713",
        "https://access.redhat.com/errata/RHSA-2026:3782",
        "https://access.redhat.com/errata/RHSA-2026:3960",
        "https://access.redhat.com/errata/RHSA-2026:42644",
        "https://access.redhat.com/errata/RHSA-2026:44696",
        "https://access.redhat.com/errata/RHSA-2026:51357",
        "https://access.redhat.com/security/cve/CVE-2026-24486",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/24xxx/CVE-2026-24486.json",
        "https://github.com/Kludex/python-multipart/security/advisories/GHSA-wp53-j4wj-2cfg",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-24486",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2433132",
        "https://github.com/Kludex/python-multipart/commit/9433f4bbc9652bdde82bbe380984e32f8cfc89c4"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/24xxx/CVE-2026-24486.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-24486",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 497997,
  "published_at": "2026-01-27T00:34:06.229+00:00"
}