{"answers":{"affected":"3 open source packages ship an affected version, including starlette. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-29159 exists.","fix":"Upgrade starlette to 0.27.0 or later.","what":"CVE-2023-29159 is a high-severity path traversal vulnerability in Encode Starlette, published on 1 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-29159 and fix it if it is affected.\n\nWhat it is: CVE-2023-29159 is a high-severity path traversal vulnerability in Encode Starlette, published on 1 Jun 2023. 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-2023-29159 exists.\n\nAffected packages and fixed versions:\n- starlette (PyPI): affected from 0.13.5; fixed in 0.27.0\n- starlette (PyPI): affected from 0.13.5; fixed in 0.27.0\n- starlette (PyPI): affected from 0.13.5; fixed in 0.27.0\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-2023-29159/ (Markdown: https://insights.sbomify.com/CVE-2023-29159/index.md)","id":"CVE-2023-29159","markdown":"https://insights.sbomify.com/CVE-2023-29159/index.md","name":"CVE-2023-29159","record":{"aliases":["DEBIAN-CVE-2023-29159","GHSA-v5gw-mw7f-84px","PYSEC-2023-83","UBUNTU-CVE-2023-29159"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python web framework","requires_auth":"none","summary":"Remote attackers can read arbitrary files from servers built with the Starlette Python framework due to a directory traversal flaw.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"jpcert","cpe":[{"product":"starlette","vendor":"encode"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Directory traversal vulnerability in Starlette versions 0.13.5 and later and prior to 0.27.0 allows a remote unauthenticated attacker to view files in a web service which was built using Starlette.","ecosystems":["PyPI"],"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 Path Traversal vulnerability in StaticFiles","id":"CVE-2023-29159","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2023"},"n_packages":3,"n_references":3,"next":{"headline":"Memory corruption in FRENIC RHC Loader","id":"CVE-2023-29160"},"packages":[{"ecosystem":"PyPI","fixed":["0.27.0"],"introduced":["0.13.5"],"last_affected":[],"package":"starlette","purl":null,"source":"GHSA-v5gw-mw7f-84px"},{"ecosystem":"PyPI","fixed":["0.27.0"],"introduced":["0.13.5"],"last_affected":[],"package":"starlette","purl":"pkg:pypi/starlette","source":"GHSA-v5gw-mw7f-84px"},{"ecosystem":"PyPI","fixed":["0.27.0"],"introduced":["0.13.5"],"last_affected":[],"package":"starlette","purl":"pkg:pypi/starlette","source":"PYSEC-2023-83"}],"prev":{"headline":"SUBNET PowerSYSTEM Center Authentication Bypass by Capture-replay","id":"CVE-2023-29158"},"products":["Starlette"],"published":"2023-06-01","related":[{"cvss_score":6.5,"headline":"Kludex Starlette HTTP Request/Response Smuggling","id":"CVE-2026-48710","kev_date_added":"2026-09-02","published":"2026-05-26"},{"cvss_score":7.5,"headline":"Starlette: request.form() limits silently ignored for application/x-www-form-urlencoded enable DoS","id":"CVE-2026-54283","kev_date_added":null,"published":"2026-06-22"},{"cvss_score":7.5,"headline":"Starlette: SSRF and NTLM credential theft via UNC paths in StaticFiles on Windows","id":"CVE-2026-48818","kev_date_added":null,"published":"2026-06-17"},{"cvss_score":7.5,"headline":"MultipartParser DOS with too many fields or files in Starlette Framework","id":"CVE-2023-30798","kev_date_added":null,"published":"2023-04-21"},{"cvss_score":5.3,"headline":"Starlette: Arbitrary HTTP method dispatched to `HTTPEndpoint` attributes via `getattr`","id":"CVE-2026-48817","kev_date_added":null,"published":"2026-06-17"},{"cvss_score":3.7,"headline":"Starlette: Unvalidated request path concatenated into authority poisons request.url.hostname","id":"CVE-2026-54282","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":"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-01-09","vendors":["Encode"]},"summary":"Remote attackers can read arbitrary files from servers built with the Starlette Python framework due to a directory traversal flaw.","url":"https://insights.sbomify.com/CVE-2023-29159/"}