Bug 2329980 (CVE-2024-53981) - CVE-2024-53981 python-multipart: python-multipart has a DoS via deformation `multipart/form-data` boundary
Summary: CVE-2024-53981 python-multipart: python-multipart has a DoS via deformation `...
Keywords:
Status: NEW
Alias: CVE-2024-53981
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2330006 2330007
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-02 16:01 UTC by OSIDB Bzimport
Modified: 2024-12-02 21:58 UTC (History)
12 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-12-02 16:01:12 UTC
python-multipart is a streaming multipart parser for Python. When parsing form data, python-multipart skips line breaks (CR \r or LF \n) in front of the first boundary and any tailing bytes after the last boundary. This happens one byte at a time and emits a log event each time, which may cause excessive logging for certain inputs. An attacker could abuse this by sending a malicious request with lots of data before the first or after the last boundary, causing high CPU load and stalling the processing thread for a significant amount of time. In case of ASGI application, this could stall the event loop and prevent other requests from being processed, resulting in a denial of service (DoS). This vulnerability is fixed in 0.0.18.


Note You need to log in before you can comment on or make changes to this bug.