{"answers":{"affected":"3 open source packages ship an affected version, including python-multipart.","exploited":"There is no known exploitation of CVE-2024-53981 in the wild and no public exploit code.","fix":"Upgrade python-multipart to 0.0.18 or later.","what":"CVE-2024-53981 is a high-severity denial of service vulnerability in Kludex python-multipart, published on 2 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-53981 and fix it if it is affected.\n\nWhat it is: CVE-2024-53981 is a high-severity denial of service vulnerability in Kludex python-multipart, published on 2 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-53981 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- python-multipart (PyPI): affected all versions; fixed in 0.0.18\n- python-multipart (PyPI): affected all versions; fixed in 0.0.18\n- python-multipart (PyPI): affected all versions; fixed in 0.0.18\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-53981/ (Markdown: https://insights.sbomify.com/CVE-2024-53981/index.md)","id":"CVE-2024-53981","markdown":"https://insights.sbomify.com/CVE-2024-53981/index.md","name":"CVE-2024-53981","record":{"aliases":["CLSA-2026-1769645547","CVE-2024-7999","CVE-2024-9840","DEBIAN-CVE-2024-53981","GHSA-59g5-xgcq-4qw3","PYSEC-2026-1851","ROOT-APP-PYPI-CVE-2024-53981","SUSE-SU-2024:4194-1","UBUNTU-CVE-2024-53981","openSUSE-SU-2024:14551-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python multipart parser","requires_auth":"none","summary":"An attacker can cause denial of service in applications using python-multipart by sending crafted requests that trigger excessive logging and high CPU usage.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"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.","ecosystems":["PyPI","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"python-multipart has a Denial of service (DoS) via deformation `multipart/form-data` boundary","id":"CVE-2024-53981","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":5,"n_references":2,"next":{"headline":"Arbitrary file download in Zoo-Project Echo Example","id":"CVE-2024-53982"},"packages":[{"ecosystem":"PyPI","fixed":["0.0.18"],"introduced":["0"],"last_affected":[],"package":"python-multipart","purl":null,"source":"GHSA-59g5-xgcq-4qw3"},{"ecosystem":"PyPI","fixed":["0.0.18"],"introduced":["0"],"last_affected":[],"package":"python-multipart","purl":"pkg:pypi/python-multipart","source":"GHSA-59g5-xgcq-4qw3"},{"ecosystem":"PyPI","fixed":["0.0.18"],"introduced":["0"],"last_affected":[],"package":"python-multipart","purl":"pkg:pypi/python-multipart","source":"PYSEC-2026-1851"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["0.0.9-150600.3.3.1"],"introduced":["0"],"last_affected":[],"package":"python-python-multipart","purl":"pkg:rpm/opensuse/python-python-multipart\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:4194-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.0.19-1.1"],"introduced":["0"],"last_affected":[],"package":"python-python-multipart","purl":"pkg:rpm/opensuse/python-python-multipart\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14551-1"}],"prev":{"headline":"Spoofed length byte traps CC2538 in endless loop","id":"CVE-2024-53980"},"products":["python-multipart"],"published":"2024-12-02","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-12-02","vendors":["Kludex"]},"summary":"An attacker can cause denial of service in applications using python-multipart by sending crafted requests that trigger excessive logging and high CPU usage.","url":"https://insights.sbomify.com/CVE-2024-53981/"}