{"answers":{"affected":"10 open source packages ship an affected version, including litestar and starlite.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-32982 exists.","fix":"Upgrade litestar to a fixed version for your release line: 2.6.4, 2.7.2 or 2.8.3.","what":"CVE-2024-32982 is a high-severity path traversal vulnerability in litestar-org litestar, published on 6 May 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-32982 and fix it if it is affected.\n\nWhat it is: CVE-2024-32982 is a high-severity path traversal vulnerability in litestar-org litestar, published on 6 May 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-32982 exists.\n\nAffected packages and fixed versions:\n- litestar (PyPI): affected from 2.0.0; fixed in 2.6.4, 2.7.2, 2.8.3\n- litestar (PyPI): affected from 2.0.0; fixed in 2.6.4\n- litestar (PyPI): affected from 2.0.0; fixed in 2.6.4\n- litestar (PyPI): affected from 2.7.0; fixed in 2.7.2\n- litestar (PyPI): affected from 2.7.0; fixed in 2.7.2\n- litestar (PyPI): affected from 2.8.0; fixed in 2.8.3\n- litestar (PyPI): affected from 2.8.0; fixed in 2.8.3\n- starlite (PyPI): affected from 1.37.0; fixed in 1.51.16\n- starlite (PyPI): affected from 1.37.0; fixed in 1.51.16\n- starlite (PyPI): affected from 1.37.0; fixed in 1.51.16\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-32982/ (Markdown: https://insights.sbomify.com/CVE-2024-32982/index.md)","id":"CVE-2024-32982","markdown":"https://insights.sbomify.com/CVE-2024-32982/index.md","name":"CVE-2024-32982","record":{"aliases":["GHSA-83pv-qr33-2vcf","PYSEC-2026-1552","PYSEC-2026-2605"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python ASGI framework","requires_auth":"none","summary":"Attackers can exploit path traversal in Litestar's static file serving to access sensitive files outside designated directories, leading to information disclosure.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Litestar and Starlite is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to 2.8.3, 2.7.2, and 2.6.4, a Local File Inclusion (LFI) vulnerability has been discovered in the static file serving component of LiteStar. This vulnerability allows attackers to exploit path traversal flaws, enabling unauthorized access to sensitive files outside the designated directories. Such access can lead to the disclosure of sensitive information or potentially compromise the server. The vulnerability is located in the file path handling mechanism within the static content serving function, specifically at `litestar/static_files/base.py`. This vulnerability is fixed in versions 2.8.3, 2.7.2, and 2.6.4.","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":"Litestar and Starlite affected by Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","id":"CVE-2024-32982","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":10,"n_references":3,"next":{"headline":"Misskey allows the impersonation and takeover of remote accounts with unnormalized signed activities","id":"CVE-2024-32983"},"packages":[{"ecosystem":"PyPI","fixed":["2.6.4","2.7.2","2.8.3"],"introduced":["2.0.0","2.7.0","2.8.0"],"last_affected":[],"package":"litestar","purl":"pkg:pypi/litestar","source":"PYSEC-2026-2605"},{"ecosystem":"PyPI","fixed":["2.6.4"],"introduced":["2.0.0"],"last_affected":[],"package":"litestar","purl":null,"source":"GHSA-83pv-qr33-2vcf"},{"ecosystem":"PyPI","fixed":["2.6.4"],"introduced":["2.0.0"],"last_affected":[],"package":"litestar","purl":"pkg:pypi/litestar","source":"GHSA-83pv-qr33-2vcf"},{"ecosystem":"PyPI","fixed":["2.7.2"],"introduced":["2.7.0"],"last_affected":[],"package":"litestar","purl":null,"source":"GHSA-83pv-qr33-2vcf"},{"ecosystem":"PyPI","fixed":["2.7.2"],"introduced":["2.7.0"],"last_affected":[],"package":"litestar","purl":"pkg:pypi/litestar","source":"GHSA-83pv-qr33-2vcf"},{"ecosystem":"PyPI","fixed":["2.8.3"],"introduced":["2.8.0"],"last_affected":[],"package":"litestar","purl":null,"source":"GHSA-83pv-qr33-2vcf"},{"ecosystem":"PyPI","fixed":["2.8.3"],"introduced":["2.8.0"],"last_affected":[],"package":"litestar","purl":"pkg:pypi/litestar","source":"GHSA-83pv-qr33-2vcf"},{"ecosystem":"PyPI","fixed":["1.51.16"],"introduced":["1.37.0"],"last_affected":[],"package":"starlite","purl":null,"source":"GHSA-83pv-qr33-2vcf"},{"ecosystem":"PyPI","fixed":["1.51.16"],"introduced":["1.37.0"],"last_affected":[],"package":"starlite","purl":"pkg:pypi/starlite","source":"GHSA-83pv-qr33-2vcf"},{"ecosystem":"PyPI","fixed":["1.51.16"],"introduced":["1.37.0"],"last_affected":[],"package":"starlite","purl":"pkg:pypi/starlite","source":"PYSEC-2026-1552"}],"prev":{"headline":"Cross-site Scripting vulnerability with encoded payload in silverstripe/framework","id":"CVE-2024-32981"},"products":["litestar"],"published":"2024-05-06","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["litestar-org"]},"summary":"Attackers can exploit path traversal in Litestar's static file serving to access sensitive files outside designated directories, leading to information disclosure.","url":"https://insights.sbomify.com/CVE-2024-32982/"}