Litestar and Starlite affected by Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| litestar-org | litestar | 2.8.0 to before 2.8.3; 1.37.0 – 1.51.14; 2.7.0 to before 2.7.2; 2.0.0 to before 2.6.4 | 2.8.3, 2.7.2, 2.6.4 | Patch available | CNA |
| — | litestar (PyPI) | 2.8.0 to before 2.8.3 | 2.8.3 | Patch available | GHSA-83pv-qr33-2vcf |
| — | starlite (PyPI) | 1.37.0 to before 1.51.16 | 1.51.16 | Patch available | GHSA-83pv-qr33-2vcf |
| — | litestar (PyPI) | 2.7.0 to before 2.7.2 | 2.7.2 | Patch available | GHSA-83pv-qr33-2vcf |
| — | litestar (PyPI) | 2.0.0 to before 2.6.4 | 2.6.4 | Patch available | GHSA-83pv-qr33-2vcf |
- litestar Vendorlitestar-org Affected 2.8.0 to before 2.8.3; 1.37.0 – 1.51.14; 2.7.0 to before 2.7.2; 2.0.0 to before 2.6.4 Fixed in 2.8.3, 2.7.2, 2.6.4 Patch available CNA
- litestar (PyPI) Vendor— Affected 2.8.0 to before 2.8.3 Fixed in 2.8.3 Patch available GHSA-83pv-qr33-2vcf
- starlite (PyPI) Vendor— Affected 1.37.0 to before 1.51.16 Fixed in 1.51.16 Patch available GHSA-83pv-qr33-2vcf
- litestar (PyPI) Vendor— Affected 2.7.0 to before 2.7.2 Fixed in 2.7.2 Patch available GHSA-83pv-qr33-2vcf
- litestar (PyPI) Vendor— Affected 2.0.0 to before 2.6.4 Fixed in 2.6.4 Patch available GHSA-83pv-qr33-2vcf
CPE names CISA-ADP · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:starliteproject:starlite:1.37.0:*:*:*:*:*:*:* | 1.37.0 | — | Starliteproject |
| cpe:2.3:a:starliteproject:starlite:2.0.0:*:*:*:*:*:*:* | 2.0.0 | — | Starliteproject |
| cpe:2.3:a:starliteproject:starlite:2.7.0:*:*:*:*:*:*:* | 2.7.0 | — | Starliteproject |
| cpe:2.3:a:starliteproject:starlite:2.8.0:*:*:*:*:*:*:* | 2.8.0 | — | Starliteproject |
- cpe:2.3:a:starliteproject:starlite:1.37.0:*:*:*:*:*:*:* Versions 1.37.0 — ·Starliteproject
- cpe:2.3:a:starliteproject:starlite:2.0.0:*:*:*:*:*:*:* Versions 2.0.0 — ·Starliteproject
- cpe:2.3:a:starliteproject:starlite:2.7.0:*:*:*:*:*:*:* Versions 2.7.0 — ·Starliteproject
- cpe:2.3:a:starliteproject:starlite:2.8.0:*:*:*:*:*:*:* Versions 2.8.0 — ·Starliteproject
Remediation
- Fix · CNA litestar (litestar-org) Fixed in 2.8.3, 2.7.2, 2.6.4
- Fix · GHSA-83pv-qr33-2vcf litestar (PyPI) Fixed in 2.8.3 Advisory →
- Fix · GHSA-83pv-qr33-2vcf starlite (PyPI) Fixed in 1.51.16 Advisory →
- Fix · GHSA-83pv-qr33-2vcf litestar (PyPI) Fixed in 2.7.2 Advisory →
- Fix · GHSA-83pv-qr33-2vcf litestar (PyPI) Fixed in 2.6.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-32982
- 2026-10-03 Alias added: GHSA-83pv-qr33-2vcf
References
Other 5
- https://github.com/litestar-org/litestar/security/advisories/GHSA-83pv-qr33-2vcf
- https://github.com/litestar-org/litestar/commit/57e706e7effdc182fc9a2af5981bc88afb21851b
- https://github.com/litestar-org/litestar/blob/main/litestar/static_files/base.py#L70
- https://github.com/litestar-org/litestar/commit/a07b79b84d8717bec5ac4d4674c1e4920ba9c813
- https://github.com/litestar-org/litestar
More litestar-org vulnerabilities
- TI-2024-35241 Litestar allows unbounded resource consumption (DoS vulnerability) CVSS 4.0HIGH 8.2
- TI-2025-36757 X-Forwarded-For Header Spoofing Bypasses Litestar Rate Limiting CVSS 3.1HIGH 7.5
- TI-2026-35501 Litestar: HTML Injection Through CSRF Token CVSS 3.1HIGH 8.1
- TI-2024-28356 Litestar repository vulnerable to Environment Variable injection in `docs-preview.yml` workflow CVSS 3.1HIGH 8.3
- TI-2026-35502 Litestar: AllowedHostsMiddleware bypasses host validation via client-controlled X-Forwarded-Host header CVSS 3.1MEDIUM 5.9
- TI-2026-20591 FileStore key canonicalization collisions allow response cache mixup/poisoning (ASCII ord + Unicode NFKD) CVSS 3.1MEDIUM 6.5
Sources
- CVE-2024-32982 · CVE Program
- CVE-2024-32982 · NVD
- FIRST EPSS
- GHSA-83pv-qr33-2vcf · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences