{"answers":{"affected":"6 open source packages ship an affected version, including fastapi and python-multipart. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-24762 exists.","fix":"Upgrade fastapi to 0.109.1 or later.","what":"CVE-2024-24762 is a high-severity denial of service vulnerability in Kludex fastapi, published on 5 Feb 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-24762 and fix it if it is affected.\n\nWhat it is: CVE-2024-24762 is a high-severity denial of service vulnerability in Kludex fastapi, published on 5 Feb 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-24762 exists.\n\nAffected packages and fixed versions:\n- fastapi (PyPI): affected all versions; fixed in 0.109.1\n- fastapi (PyPI): affected all versions; fixed in 0.109.1\n- fastapi (PyPI): affected all versions; fixed in 0.109.1\n- python-multipart (PyPI): affected all versions; fixed in 0.0.7\n- python-multipart (PyPI): affected all versions; fixed in 0.0.7\n- python-multipart (PyPI): affected all versions; fixed in 0.0.7\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-24762/ (Markdown: https://insights.sbomify.com/CVE-2024-24762/index.md)","id":"CVE-2024-24762","markdown":"https://insights.sbomify.com/CVE-2024-24762/index.md","name":"CVE-2024-24762","record":{"aliases":["CLSA-2025-1755043914","CLSA-2025-1755735112","CLSA-2025-1758586346","CLSA-2026-1787305298","DEBIAN-CVE-2024-24762","GHSA-2jv5-9r88-3w3p","GHSA-qf9m-vfgh-m389","PYSEC-2024-38","PYSEC-2026-1850","ROOT-APP-PYPI-CVE-2024-24762","ROOT-APP-PYPI-GHSA-qf9m-vfgh-m389","UBUNTU-CVE-2024-24762","openSUSE-SU-2024:13664-1","openSUSE-SU-2024:13684-1","openSUSE-SU-2026:11710-1","openSUSE-SU-2026:12032-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 a denial of service in applications using python-multipart by sending a crafted Content-Type header that triggers excessive CPU usage.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"python-multipart","vendor":"fastapiexpert"}],"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-1333","name":"Inefficient Regular Expression Complexity"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"`python-multipart` is a streaming multipart parser for Python. 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, leading to regular expression denial of service. This vulnerability has been patched in version 0.0.7.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"python-multipart vulnerable to content-type header Regular expression Denial of Service","id":"CVE-2024-24762","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":8,"n_references":8,"next":{"headline":"JumpServer Open Redirect Vulnerability","id":"CVE-2024-24763"},"packages":[{"ecosystem":"PyPI","fixed":["0.109.1"],"introduced":["0"],"last_affected":[],"package":"fastapi","purl":null,"source":"GHSA-qf9m-vfgh-m389"},{"ecosystem":"PyPI","fixed":["0.109.1"],"introduced":["0"],"last_affected":[],"package":"fastapi","purl":"pkg:pypi/fastapi","source":"GHSA-qf9m-vfgh-m389"},{"ecosystem":"PyPI","fixed":["0.109.1"],"introduced":["0"],"last_affected":[],"package":"fastapi","purl":"pkg:pypi/fastapi","source":"PYSEC-2024-38"},{"ecosystem":"PyPI","fixed":["0.0.7"],"introduced":["0"],"last_affected":[],"package":"python-multipart","purl":null,"source":"GHSA-2jv5-9r88-3w3p"},{"ecosystem":"PyPI","fixed":["0.0.7"],"introduced":["0"],"last_affected":[],"package":"python-multipart","purl":"pkg:pypi/python-multipart","source":"GHSA-2jv5-9r88-3w3p"},{"ecosystem":"PyPI","fixed":["0.0.7"],"introduced":["0"],"last_affected":[],"package":"python-multipart","purl":"pkg:pypi/python-multipart","source":"PYSEC-2026-1850"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.138.0-2.1"],"introduced":["0"],"last_affected":[],"package":"python-fastapi","purl":"pkg:rpm/opensuse/python-fastapi\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:11710-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.0.32-1.3"],"introduced":["0"],"last_affected":[],"package":"python-python-multipart","purl":"pkg:rpm/opensuse/python-python-multipart\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:12032-1"}],"prev":{"headline":"Galette public pages accessibility restriction","id":"CVE-2024-24761"},"products":["fastapi","python-multipart","starlette"],"published":"2024-02-05","related":[{"cvss_score":8.6,"headline":"Python-Multipart has Arbitrary File Write via Non-Default Configuration","id":"CVE-2026-24486","kev_date_added":null,"published":"2026-01-27"},{"cvss_score":7.5,"headline":"Python-Multipart: Quadratic-time querystring parsing with semicolon separators causes CPU denial of service","id":"CVE-2026-53539","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":5.3,"headline":"Python-Multipart affected by Denial of Service via large multipart preamble or epilogue data","id":"CVE-2026-40347","kev_date_added":null,"published":"2026-04-17"},{"cvss_score":3.7,"headline":"Python-Multipart: Content-Disposition parameter smuggling via RFC 2231/5987 extended parameters","id":"CVE-2026-53537","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":3.7,"headline":"Python-Multipart: Semicolon treated as querystring field separator enables parameter smuggling","id":"CVE-2026-53538","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":3.7,"headline":"Python-Multipart: Negative Content-Length in parse_form buffers the entire body in memory","id":"CVE-2026-53540","kev_date_added":null,"published":"2026-06-22"}],"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":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-09","vendors":["Kludex","encode","tiangolo"]},"summary":"An attacker can cause a denial of service in applications using python-multipart by sending a crafted Content-Type header that triggers excessive CPU usage.","url":"https://insights.sbomify.com/CVE-2024-24762/"}