{"id":"CVE-2024-53981","aliases":["CLSA-2026-1769645547","DEBIAN-CVE-2024-53981","EUVD-2024-3431","GHSA-59g5-xgcq-4qw3","PYSEC-2026-1851","ROOT-APP-PYPI-CVE-2024-53981","SUSE-SU-2024:4194-1","UBUNTU-CVE-2024-53981","USN-8027-1","openSUSE-SU-2024:14551-1"],"status":"published","title":"python-multipart has a Denial of service (DoS) via deformation `multipart/form-data` boundary","description":"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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00635,"percentile":0.50932,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-770"],"published":"2024-12-02T15:57:50Z","modified":"2026-11-02T12:03:09Z","fixes":[{"ecosystem":"PyPI","package":"python-multipart","fixed_in":["0.0.18"],"sources":["ghsa","osv"]},{"ecosystem":"TuxCare:PyPI","package":"python-multipart","fixed_in":["0.0.6.post2+tuxcare"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"python-multipart","fixed_in":["0.0.20-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"python-multipart","fixed_in":["0.0.20-1"],"sources":["osv"]},{"ecosystem":"Root:PyPI","package":"python-multipart","fixed_in":["0.0.5+aikido.1","0.0.17+aikido.2"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.6","package":"python-python-multipart","fixed_in":["0.0.9-150600.3.3.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"python-multipart","fixed_in":["0.0.5-2ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"python-multipart","fixed_in":["0.0.9-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"python-python-multipart","fixed_in":["0.0.19-1.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"python-multipart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.18"}]}]},{"source":"osv","ecosystem":"TuxCare:PyPI","package":"python-multipart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.6"},{"fixed":"0.0.6.post2+tuxcare"}]}],"versions":["0.0.6","0.0.6.post1+tuxcare"]},{"source":"osv","ecosystem":"Debian:12","package":"python-multipart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0.17-1","0.0.17-2","0.0.17-3","0.0.17-4","0.0.17-5","0.0.20-1","0.0.20-1.1","0.0.20-1.1~deb13u1","0.0.22-1","0.0.26-1","0.0.32-1","0.0.33-1","0.0.5-3","0.0.6-1","0.0.9-1"]},{"source":"osv","ecosystem":"Debian:13","package":"python-multipart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.20-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"python-multipart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.20-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"python-multipart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.18"}]}],"versions":["0.0.1","0.0.10","0.0.11","0.0.12","0.0.13","0.0.14","0.0.15","0.0.16","0.0.17","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.0.8","0.0.9"]},{"source":"osv","ecosystem":"PyPI","package":"python-multipart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.18"}]}],"versions":["0.0.1","0.0.10","0.0.11","0.0.12","0.0.13","0.0.14","0.0.15","0.0.16","0.0.17","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.0.8","0.0.9"]},{"source":"osv","ecosystem":"Root:PyPI","package":"python-multipart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.5+aikido.1"},{"fixed":"0.0.17+aikido.2"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.6","package":"python-python-multipart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.9-150600.3.3.1"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"python-multipart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.5-2ubuntu0.1~esm1"}]}],"versions":["0.0.5-2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"python-multipart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.9-1ubuntu0.1~esm1"}]}],"versions":["0.0.5-3","0.0.6-1","0.0.9-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"python-multipart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.5-2ubuntu0.1~esm1"}]}],"versions":["0.0.5-2"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"python-multipart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.9-1ubuntu0.1~esm1"}]}],"versions":["0.0.5-3","0.0.6-1","0.0.9-1"],"bundled":3},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"python-python-multipart","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.19-1.1"}]}]}],"products":[{"vendor":"kludex","product":"python-multipart"}],"references":[{"url":"https://github.com/Kludex/python-multipart/security/advisories/GHSA-59g5-xgcq-4qw3","tags":["x_refsource_CONFIRM","advisory","web","report"]},{"url":"https://github.com/Kludex/python-multipart/commit/c4fe4d3cebc08c660e57dd709af1ffa7059b3177","tags":["x_refsource_MISC","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53981","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-59g5-xgcq-4qw3","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/53xxx/CVE-2024-53981.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-53981","tags":["advisory"]},{"url":"https://github.com/Kludex/python-multipart","tags":["package"]},{"url":"https://pypi.org/project/python-multipart","tags":["package"]},{"url":"https://www.suse.com/support/update/announcement/2024/suse-su-20244194-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1234115","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2024-53981","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2024-53981","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-53981","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-8027-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-24762","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2026-24486","tags":["report"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2024-53981","title":"python-multipart has a Denial of service (DoS) via deformation `multipart/form-data` boundary","description":"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.","status":"published","published":"2024-12-02T15:57:50.232Z","modified":"2024-12-02T19:59:14.83Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T14:34:17.523201Z"}],"euvd":[{"id":"EUVD-2024-3431","description":"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.","status":"published","published":"2024-12-02T15:57:50Z","modified":"2024-12-02T19:59:14Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-03T00:04:43.613884Z"}],"ghsa":[{"id":"GHSA-59g5-xgcq-4qw3","title":"Denial of service (DoS) via deformation `multipart/form-data` boundary","description":"### Summary\n\nWhen 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.\n\nAn 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).\n\n### Impact\n\nApplications that use `python-multipart` to parse form data (or use frameworks that do so) are affected. \n\n### Original Report\n\nThis security issue was reported by:\n- GitHub security advisory in Starlette on October 30 by @Startr4ck\n- Email to `python-multipart` maintainer on October 3 by @mnqazi","status":"published","published":"2024-12-02T21:37:04Z","modified":"2024-12-02T21:37:05Z","cvss":[{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T14:38:24.542211Z"}],"nvd":[{"id":"CVE-2024-53981","description":"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.","status":"published","published":"2024-12-02T16:15:14.457Z","modified":"2026-06-17T08:09:36.64Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T14:10:38.973941Z"}],"osv":[{"id":"CVE-2024-53981","title":"python-multipart has a Denial of service (DoS) via deformation `multipart/form-data` boundary","description":"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.","status":"published","published":"2024-12-02T15:57:50.232Z","modified":"2026-10-28T02:31:01.322502572Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T15:44:44.451316Z"},{"id":"DEBIAN-CVE-2024-53981","description":"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.","status":"published","published":"2024-12-02T16:15:14.457Z","modified":"2026-11-02T12:03:09.107932212Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:44.429177Z"},{"id":"GHSA-59g5-xgcq-4qw3","title":"Denial of service (DoS) via deformation `multipart/form-data` boundary","description":"### Summary\n\nWhen 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.\n\nAn 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).\n\n### Impact\n\nApplications that use `python-multipart` to parse form data (or use frameworks that do so) are affected. \n\n### Original Report\n\nThis security issue was reported by:\n- GitHub security advisory in Starlette on October 30 by @Startr4ck\n- Email to `python-multipart` maintainer on October 3 by @mnqazi","status":"published","published":"2024-12-02T21:37:04Z","modified":"2026-09-10T03:50:21.270678783Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-770"],"updated_at":"2026-11-02T15:46:38.213481Z"},{"id":"PYSEC-2026-1851","title":"Denial of service (DoS) via deformation `multipart/form-data` boundary","description":"### Summary\n\nWhen 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.\n\nAn 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).\n\n### Impact\n\nApplications that use `python-multipart` to parse form data (or use frameworks that do so) are affected. \n\n### Original Report\n\nThis security issue was reported by:\n- GitHub security advisory in Starlette on October 30 by @Startr4ck\n- Email to `python-multipart` maintainer on October 3 by @mnqazi","status":"published","published":"2026-07-07T14:34:46.120148Z","modified":"2026-07-07T17:48:07.212662534Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"},{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"high"}],"updated_at":"2026-11-02T15:52:55.06457Z"},{"id":"ROOT-APP-PYPI-CVE-2024-53981","title":"CVE-2024-53981 in python-multipart - Patched by Root","description":"Root has patched CVE-2024-53981 in the python-multipart package for Root:PyPI. Multiple fixed versions available.","status":"published","published":"2026-09-14T08:55:54Z","modified":"2026-09-14T09:15:03.084184786Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:27.940619Z"},{"id":"UBUNTU-CVE-2024-53981","description":"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.","status":"published","published":"2024-12-02T16:15:00Z","modified":"2026-02-12T14:43:52.262476Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T16:55:11.182485Z"},{"id":"CLSA-2026-1769645547","title":"TuxCare security update for python-multipart (1 CVE)","description":"TuxCare rebuilt python-multipart to address 1 CVE. Fixed in 0.0.6.post2+tuxcare.","status":"published","published":"2026-08-04T14:52:09Z","modified":"2026-10-15T09:47:58.731321082Z","updated_at":"2026-11-02T15:43:42.847264Z"},{"id":"openSUSE-SU-2024:14551-1","title":"python310-python-multipart-0.0.19-1.1 on GA media","description":"These are all security issues fixed in the python310-python-multipart-0.0.19-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-12-05T00:00:00Z","modified":"2026-02-04T04:31:48.126924Z","updated_at":"2026-11-02T16:58:36.976155Z"},{"id":"SUSE-SU-2024:4194-1","title":"Security update for python-python-multipart","description":"This update for python-python-multipart fixes the following issues:\n\n- CVE-2024-53981: excessive logging for certain inputs when parsing form data. (bsc#1234115)\n","status":"published","published":"2024-12-05T11:03:08Z","modified":"2026-02-04T02:13:14.824399Z","updated_at":"2026-11-02T15:53:56.123059Z"},{"id":"USN-8027-1","title":"python-multipart vulnerabilities","description":"It was discovered that Python-Multipart incorrectly handled certain \nregular expressions. An attacker could possibly use this issue to cause\nPython-Multipart to consume excessive resources, leading to a regular \nexpression denial of service. This issue only affected Ubuntu 22.04 LTS.\n(CVE-2024-24762)\n\nIt was discovered that Python-Multipart did not properly sanitize line\nbreaks during user input. An attacker could use this issue to send \narbitrary input, thus preventing other requests from being processed, \nresulting in a denial of service. This issue was only fixed in \nUbuntu 24.04 LTS. (CVE-2024-53981)\n\nIt was discovered that Python-Multipart was vulnerable to path traversal\nattacks. An attacker could possibly craft and upload files outside the \ntarget directory, resulting in remote code execution. (CVE-2026-24486)","status":"published","published":"2026-02-11T17:05:53Z","modified":"2026-10-27T04:16:43.566662488Z","updated_at":"2026-11-02T16:58:22.951676Z"}]}}
