Skip to content
Heist/ feed
Back to feed
High

python-multipart — security advisory

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

Python-Multipart is a streaming multipart parser for Python. Prior to 0.0.30, when parsing application/x-www-form-urlencoded bodies, QuerystringParser located the field separator with a two step lookup: it first scanned the entire remaining buffer for &, and only when no & existed anywhere ahead did it fall back to scanning for ;. For a body that uses ; as the separator and contains no &, every field iteration performed a full failed & scan over the entire remaining buffer before locating the nearby ;. With N semicolon separated fields in a chunk of size B, this yields O(B^2) byte comparisons per chunk. An attacker can submit a small crafted body of the form a;a;a;... and cause the parser to spend seconds of CPU per request. A handful of concurrent requests can exhaust worker processes. This vulnerability is fixed in 0.0.30.

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-53539
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 03:08 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-53539

core-osv · Original source

Published 22 Jun 2026, 18:16 UTC

Python-Multipart is a streaming multipart parser for Python. Prior to 0.0.30, when parsing application/x-www-form-urlencoded bodies, QuerystringParser located the field separator with a two step lookup: it first scanned the entire remaining buffer for &, and only when no & existed anywhere ahead did it fall back to scanning for ;. For a body that uses ; as the separator and contains no &, every field iteration performed a full failed & scan over the entire remaining buffer before locating the nearby ;. With N semicolon separated fields in a chunk of size B, this yields O(B^2) byte comparisons per chunk. An attacker can submit a small crafted body of the form a;a;a;... and cause the parser to spend seconds of CPU per request. A handful of concurrent requests can exhaust worker processes. This vulnerability is fixed in 0.0.30.

osv:UBUNTU-CVE-2026-53539

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": "cefbfeb7b2c359856ac09cfe1516be0ada60bc22cb8065cdb01feaa9a1962e47",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-53539",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-53539",
    "summary": "Python-Multipart is a streaming multipart parser for Python. Prior to 0.0.30, when parsing application/x-www-form-urlencoded bodies, QuerystringParser located the field separator with a two step lookup: it first scanned the entire remaining buffer for &, and only when no & existed anywhere ahead did it fall back to scanning for ;. For a body that uses ; as the separator and contains no &, every field iteration performed a full failed & scan over the entire remaining buffer before locating the nearby ;. With N semicolon separated fields in a chunk of size B, this yields O(B^2) byte comparisons per chunk. An attacker can submit a small crafted body of the form a;a;a;... and cause the parser to spend seconds of CPU per request. A handful of concurrent requests can exhaust worker processes. This vulnerability is fixed in 0.0.30.",
    "evidence": "osv:UBUNTU-CVE-2026-53539",
    "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-53539",
      "aliases": [
        "UBUNTU-CVE-2026-53539"
      ],
      "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": "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-53539.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-53539.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-53539.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-53539.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-53539.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-python-multipart",
                "binary_version": "0.0.20-1.1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T13:00:25.312916418Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-53539"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-53539",
        "https://www.cve.org/CVERecord?id=CVE-2026-53539"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-53539",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 360522,
  "published_at": "2026-06-22T18:16:00+00:00"
}