{"id":"CVE-2024-32982","published":"2024-05-06T14:38:10Z","modified":"2024-08-02T02:27:53Z","title":"Litestar and Starlite affected by Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","vendor":"litestar-org","product":"litestar","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00722,"percentile":0.54911,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-83pv-qr33-2vcf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/litestar-org/litestar/commit/57e706e7effdc182fc9a2af5981bc88afb21851b","tags":["x_refsource_MISC"]},{"url":"https://github.com/litestar-org/litestar/blob/main/litestar/static_files/base.py#L70","tags":["x_refsource_MISC"]}],"priority":{"score":16.7,"factors":[{"name":"EPSS percentile","points":10.98},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"litestar-org","affectedVersions":[{"vendor":"litestar-org","product":"litestar","versions":[">= 2.8.0, < 2.8.3",">= 1.37.0, <= 1.51.14",">= 2.7.0, < 2.7.2",">= 2.0.0, < 2.6.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-07-03T14:26:20.026909Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"litestar","vulnerableRanges":[">=2.8.0, <2.8.3",">=2.7.0, <2.7.2",">=2.0.0, <2.6.4"],"patched":["2.8.3","2.7.2","2.6.4"],"from":["GHSA-83pv-qr33-2vcf","PYSEC-2026-2605"],"provenance":"source"},{"ecosystem":"PyPI","package":"starlite","vulnerableRanges":[">=1.37.0, <1.51.16"],"patched":["1.51.16"],"from":["GHSA-83pv-qr33-2vcf","PYSEC-2026-1552"],"provenance":"source"}],"summary":{"text":"The Litestar framework (and its predecessor Starlite), an ASGI framework, contains a path traversal flaw in the static file serving component, specifically in the file path handling in litestar/static_files/base.py. An attacker with network access and no authentication or user interaction can use crafted paths to read files outside the designated static directories, which may expose sensitive information.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:57:29Z"},"euvd":{"id":"EUVD-2024-1511","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-25578","published":"2023-02-15","fixed":"1.51.2","kev":false,"link":{"from":"CVE-2023-25578","to":"CVE-2024-32982","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:starlite","fromFixed":"1.51.2","toFixed":"1.51.16","daysApart":446}]}},{"cve":"CVE-2024-32982","published":"2024-05-06","fixed":"1.51.16","kev":false}],"package":"PyPI:starlite"}}