Skip to content
Heist/ feed
Back to feed
High

python-multipart — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-42561

Python-Multipart is a streaming multipart parser for Python. Prior to 0.0.27, python-multipart has a denial of service vulnerability in multipart part header parsing. When parsing multipart/form-data, MultipartParser previously had no limit on the number of part headers or the size of an individual part header. An attacker could send a request with either many repeated headers without terminating the header block or a single very large header value, causing excessive CPU work before request rejection or completion. This vulnerability is fixed in 0.0.27.

Products
python-multipart
Affected versions
0.0.20-1, 0.0.20-1.1, 0.0.26-1, 0.0.32-1, 0.0.5-2, 0.0.5-2ubuntu0.1~esm1, 0.0.5-3, 0.0.6-1, 0.0.9-1, 0.0.9-1ubuntu0.1~esm1
Fixed versions
Not specified
CVEs
CVE-2026-42561
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:03 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-42561

core-osv · Original source

Published 13 May 2026, 21:16 UTC

Python-Multipart is a streaming multipart parser for Python. Prior to 0.0.27, python-multipart has a denial of service vulnerability in multipart part header parsing. When parsing multipart/form-data, MultipartParser previously had no limit on the number of part headers or the size of an individual part header. An attacker could send a request with either many repeated headers without terminating the header block or a single very large header value, causing excessive CPU work before request rejection or completion. This vulnerability is fixed in 0.0.27.

osv:UBUNTU-CVE-2026-42561

python-multipart

Fixed versions: Not specified

python-multipart

Fixed versions: Not specified

python-multipart

Fixed versions: Not specified

python-multipart

Fixed versions: Not specified

python-multipart

Fixed versions: Not specified

Complete source record
{
  "id": "5f09e8d1dd0da8602b281fd211a9f9bb9aaa7b0a00fd47a25e80dd91a85734ba",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-42561",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-42561",
    "summary": "Python-Multipart is a streaming multipart parser for Python. Prior to 0.0.27, python-multipart has a denial of service vulnerability in multipart part header parsing. When parsing multipart/form-data, MultipartParser previously had no limit on the number of part headers or the size of an individual part header. An attacker could send a request with either many repeated headers without terminating the header block or a single very large header value, causing excessive CPU work before request rejection or completion. This vulnerability is fixed in 0.0.27.",
    "evidence": "osv:UBUNTU-CVE-2026-42561",
    "products": [
      {
        "name": {
          "value": "python-multipart",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0.5-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.0.5-2ubuntu0.1~esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-multipart",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0.5-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.0.6-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.0.9-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.0.9-1ubuntu0.1~esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-multipart",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0.20-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-multipart",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0.20-1.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.0.26-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.0.32-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-multipart",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.0.20-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.0.20-1.1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2026-42561",
      "aliases": [
        "UBUNTU-CVE-2026-42561"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multipart",
            "purl": "pkg:deb/ubuntu/python-multipart?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "0.0.5-2",
            "0.0.5-2ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42561.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-multipart",
                "binary_version": "0.0.5-2ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multipart",
            "purl": "pkg:deb/ubuntu/python-multipart?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "Ubuntu:Pro:24.04:LTS"
          },
          "versions": [
            "0.0.5-3",
            "0.0.6-1",
            "0.0.9-1",
            "0.0.9-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42561.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-multipart",
                "binary_version": "0.0.9-1ubuntu0.1~esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multipart",
            "purl": "pkg:deb/ubuntu/python-multipart?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.0.20-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42561.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-python-multipart",
                "binary_version": "0.0.20-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multipart",
            "purl": "pkg:deb/ubuntu/python-multipart?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.0.20-1.1",
            "0.0.26-1",
            "0.0.32-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42561.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-python-multipart",
                "binary_version": "0.0.32-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-multipart",
            "purl": "pkg:deb/ubuntu/python-multipart?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.0.20-1",
            "0.0.20-1.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42561.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-python-multipart",
                "binary_version": "0.0.20-1.1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:05.339921799Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-42561"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-42561",
        "https://www.cve.org/CVERecord?id=CVE-2026-42561",
        "https://github.com/Kludex/python-multipart/security/advisories/GHSA-pp6c-gr5w-3c5g",
        "https://github.com/Kludex/python-multipart/pull/267",
        "https://github.com/Kludex/python-multipart/commit/3e64f5f8caba0e5d391b0c1ad0f1c2edf9e8f911"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-42561",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360302,
  "published_at": "2026-05-13T21:16:00+00:00"
}