Litestar and Starlite affected by Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 2.8.3, 2.7.2, 2.6.4, 1.51.16
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: poc
- Automatable: yes
- Technical impact: total
Summary
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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: poc · Automatable: yes · Technical impact: total
- Record last updated
Affected versions
- litestar-org litestar
From 2.8.0 · fixed in 2.8.3; From 1.37.0 · through 1.51.14; From 2.7.0 · fixed in 2.7.2; From 2.0.0 · fixed in 2.6.4
- starlitePyPI
From 1.37.0 · fixed in 1.51.16
- litestarPyPI
From 2.8.0 · fixed in 2.8.3
- litestarPyPI
From 2.7.0 · fixed in 2.7.2
- litestarPyPI
From 2.0.0 · fixed in 2.6.4
- litestarPyPI
From 2.0.0 · fixed in 2.6.4; From 2.7.0 · fixed in 2.7.2; From 2.8.0 · fixed in 2.8.3