python-multipart: CVE-2024-24762

Related Vulnerabilities: CVE-2024-24762  

Debian Bug report logs - #1063538
python-multipart: CVE-2024-24762

version graph

Reported by: Moritz Mühlenhoff <jmm@inutil.org>

Date: Fri, 9 Feb 2024 14:06:11 UTC

Severity: important

Tags: security, upstream

Found in version python-multipart/0.0.6-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, team@security.debian.org, Sandro Tosi <morph@debian.org>:
Bug#1063538; Package src:python-multipart. (Fri, 09 Feb 2024 14:06:13 GMT) (full text, mbox, link).


Acknowledgement sent to Moritz Mühlenhoff <jmm@inutil.org>:
New Bug report received and forwarded. Copy sent to team@security.debian.org, Sandro Tosi <morph@debian.org>. (Fri, 09 Feb 2024 14:06:13 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Moritz Mühlenhoff <jmm@inutil.org>
To: submit@bugs.debian.org
Subject: python-multipart: CVE-2024-24762
Date: Fri, 9 Feb 2024 15:05:43 +0100
Source: python-multipart
X-Debbugs-CC: team@security.debian.org
Severity: important
Tags: security

Hi,

The following vulnerability was published for python-multipart.

CVE-2024-24762[0]:
| FastAPI is a web framework for building APIs with Python 3.8+ based
| on standard Python type hints. When using form data, `python-
| multipart` uses a Regular Expression to parse the HTTP `Content-
| Type` header, including options. An attacker could send a custom-
| made `Content-Type` option that is very difficult for the RegEx to
| process, consuming CPU resources and stalling indefinitely (minutes
| or more) while holding the main event loop. This means that process
| can't handle any more requests. It's a ReDoS(Regular expression
| Denial of Service), it only applies to those reading form data,
| using `python-multipart`. This vulnerability has been patched in
| version 0.109.0.

This was reported by fastapi:
https://github.com/tiangolo/fastapi/security/advisories/GHSA-qf9m-vfgh-m389

But the actual code fix within Debian is in python-multipart:
https://github.com/Kludex/python-multipart/commit/20f0ef6b4e4caf7d69a667c54dff57fe467109a4
https://github.com/Kludex/python-multipart/pull/75


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2024-24762
    https://www.cve.org/CVERecord?id=CVE-2024-24762

Please adjust the affected versions in the BTS as needed.



Added tag(s) upstream. Request was from Salvatore Bonaccorso <carnil@debian.org> to control@bugs.debian.org. (Fri, 09 Feb 2024 19:57:08 GMT) (full text, mbox, link).


Marked as found in versions python-multipart/0.0.6-1. Request was from Salvatore Bonaccorso <carnil@debian.org> to control@bugs.debian.org. (Fri, 09 Feb 2024 21:00:05 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Feb 10 14:46:16 2024; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.