{"answers":{"affected":"3 open source packages ship an affected version, including starlette.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54121 exists.","fix":"Upgrade starlette to 0.47.2 or later.","what":"CVE-2025-54121 is a medium-severity denial of service vulnerability in encode starlette, published on 21 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-54121 and fix it if it is affected.\n\nWhat it is: CVE-2025-54121 is a medium-severity denial of service vulnerability in encode starlette, published on 21 Jul 2025. 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-2025-54121 exists.\n\nAffected packages and fixed versions:\n- starlette (PyPI): affected all versions; fixed in 0.47.2\n- starlette (PyPI): affected all versions; fixed in 0.47.2\n- starlette (PyPI): affected all versions; fixed in 0.47.2\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-2025-54121/ (Markdown: https://insights.sbomify.com/CVE-2025-54121/index.md)","id":"CVE-2025-54121","markdown":"https://insights.sbomify.com/CVE-2025-54121/index.md","name":"CVE-2025-54121","record":{"aliases":["CLEANSTART-2026-YZ00893","CLSA-2025-1764115957","CLSA-2025-1764288754","DEBIAN-CVE-2025-54121","GHSA-2c2j-9gv5-cj73","MINI-mfg9-9m76-wmxh","PYSEC-2026-1941","ROOT-APP-PYPI-CVE-2025-54121","SUSE-SU-2025:02544-1","UBUNTU-CVE-2025-54121","openSUSE-SU-2025:15381-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python ASGI framework","requires_auth":"none","summary":"Attackers can cause denial of service by uploading large files, blocking the main thread and preventing new connections in Starlette applications.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"description":"Starlette is a lightweight ASGI (Asynchronous Server Gateway Interface) framework/toolkit, designed for building async web services in Python. In versions 0.47.1 and below, when parsing a multi-part form with large files (greater than the default max spool size) starlette will block the main thread to roll the file over to disk. This blocks the event thread which means the application can't accept new connections. The UploadFile code has a minor bug where instead of just checking for self._in_memory, the logic should also check if the additional bytes will cause a rollover. The vulnerability is fixed in version 0.47.2.","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":"weaponised"},"has_fix":true,"headline":"Starlette has possible denial-of-service vector when parsing large files in multipart forms","id":"CVE-2025-54121","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":5,"n_references":4,"next":{"headline":"Manager-io/Manager allows unauthenticated full read server-side request forgery in \"proxy\" endpoint","id":"CVE-2025-54122"},"packages":[{"ecosystem":"PyPI","fixed":["0.47.2"],"introduced":["0"],"last_affected":[],"package":"starlette","purl":null,"source":"GHSA-2c2j-9gv5-cj73"},{"ecosystem":"PyPI","fixed":["0.47.2"],"introduced":["0"],"last_affected":[],"package":"starlette","purl":"pkg:pypi/starlette","source":"GHSA-2c2j-9gv5-cj73"},{"ecosystem":"PyPI","fixed":["0.47.2"],"introduced":["0"],"last_affected":[],"package":"starlette","purl":"pkg:pypi/starlette","source":"PYSEC-2026-1941"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["0.35.1-150600.3.6.1"],"introduced":["0"],"last_affected":[],"package":"python-starlette","purl":"pkg:rpm/opensuse/python-starlette\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:02544-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.47.2-1.1"],"introduced":["0"],"last_affected":[],"package":"python-starlette","purl":"pkg:rpm/opensuse/python-starlette\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15381-1"}],"prev":{"headline":"PCL Community Edition exposes login credentials in logs","id":"CVE-2025-54120"},"products":["starlette"],"published":"2025-07-21","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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-07-22","vendors":["encode"]},"summary":"Attackers can cause denial of service by uploading large files, blocking the main thread and preventing new connections in Starlette applications.","url":"https://insights.sbomify.com/CVE-2025-54121/"}