CVE-2024-32982 Litestar and Starlite affected by Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
HighCVSS 8.2
EPSS 0.72%
- Published
- Updated
- Exploit status
- No public exploit known
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi litestar(PyPI) | >= 2.8.0, < 2.8.3 | 2.8.3 |
| pypi litestar(PyPI) | = 2.8.0 | No fix listed |
| pypi litestar(PyPI) | = 2.8.1 | No fix listed |
| pypi litestar(PyPI) | = 2.8.2 | No fix listed |
| pypi starlite(PyPI) | >= 1.37.0, < 1.51.16 | 1.51.16 |
| pypi starlite(PyPI) | = 1.37.0 | No fix listed |
| pypi starlite(PyPI) | = 1.38.0 | No fix listed |
| pypi starlite(PyPI) | = 1.39.0 | No fix listed |
| pypi starlite(PyPI) | = 1.40.0 | No fix listed |
| pypi starlite(PyPI) | = 1.40.1 | No fix listed |
| pypi starlite(PyPI) | = 1.41.0 | No fix listed |
| pypi starlite(PyPI) | = 1.42.0 | No fix listed |
| pypi starlite(PyPI) | = 1.43.0 | No fix listed |
| pypi starlite(PyPI) | = 1.43.1 | No fix listed |
| pypi starlite(PyPI) | = 1.44.0 | No fix listed |
| pypi starlite(PyPI) | = 1.45.0 | No fix listed |
| pypi starlite(PyPI) | = 1.45.1 | No fix listed |
| pypi starlite(PyPI) | = 1.46.0 | No fix listed |
| pypi starlite(PyPI) | = 1.47.0 | No fix listed |
| pypi starlite(PyPI) | = 1.48.0 | No fix listed |
| pypi starlite(PyPI) | = 1.48.1 | No fix listed |
| pypi starlite(PyPI) | = 1.49.0 | No fix listed |
| pypi starlite(PyPI) | = 1.50.0 | No fix listed |
| pypi starlite(PyPI) | = 1.50.1 | No fix listed |
| pypi starlite(PyPI) | = 1.50.2 | No fix listed |
Show 53 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi starlite(PyPI) | = 1.51.0 | No fix listed |
| pypi starlite(PyPI) | = 1.51.1 | No fix listed |
| pypi starlite(PyPI) | = 1.51.10 | No fix listed |
| pypi starlite(PyPI) | = 1.51.11 | No fix listed |
| pypi starlite(PyPI) | = 1.51.12 | No fix listed |
| pypi starlite(PyPI) | = 1.51.13 | No fix listed |
| pypi starlite(PyPI) | = 1.51.14 | No fix listed |
| pypi starlite(PyPI) | = 1.51.15 | No fix listed |
| pypi starlite(PyPI) | = 1.51.2 | No fix listed |
| pypi starlite(PyPI) | = 1.51.3 | No fix listed |
| pypi starlite(PyPI) | = 1.51.4 | No fix listed |
| pypi starlite(PyPI) | = 1.51.5 | No fix listed |
| pypi starlite(PyPI) | = 1.51.6 | No fix listed |
| pypi starlite(PyPI) | = 1.51.7 | No fix listed |
| pypi starlite(PyPI) | = 1.51.8 | No fix listed |
| pypi starlite(PyPI) | = 1.51.9 | No fix listed |
| pypi litestar(PyPI) | >= 2.7.0, < 2.7.2 | 2.7.2 |
| pypi litestar(PyPI) | = 2.7.0 | No fix listed |
| pypi litestar(PyPI) | = 2.7.1 | No fix listed |
| pypi litestar(PyPI) | >= 2.0.0, < 2.6.4 | 2.6.4 |
| pypi litestar(PyPI) | = 2.0.0 | No fix listed |
| pypi litestar(PyPI) | = 2.0.1 | No fix listed |
| pypi litestar(PyPI) | = 2.1.0 | No fix listed |
| pypi litestar(PyPI) | = 2.1.1 | No fix listed |
| pypi litestar(PyPI) | = 2.2.0 | No fix listed |
| pypi litestar(PyPI) | = 2.2.1 | No fix listed |
| pypi litestar(PyPI) | = 2.3.0 | No fix listed |
| pypi litestar(PyPI) | = 2.3.1 | No fix listed |
| pypi litestar(PyPI) | = 2.3.2 | No fix listed |
| pypi litestar(PyPI) | = 2.4.0 | No fix listed |
| pypi litestar(PyPI) | = 2.4.1 | No fix listed |
| pypi litestar(PyPI) | = 2.4.2 | No fix listed |
| pypi litestar(PyPI) | = 2.4.3 | No fix listed |
| pypi litestar(PyPI) | = 2.4.4 | No fix listed |
| pypi litestar(PyPI) | = 2.4.5 | No fix listed |
| pypi litestar(PyPI) | = 2.5.0 | No fix listed |
| pypi litestar(PyPI) | = 2.5.1 | No fix listed |
| pypi litestar(PyPI) | = 2.5.2 | No fix listed |
| pypi litestar(PyPI) | = 2.5.3 | No fix listed |
| pypi litestar(PyPI) | = 2.5.4 | No fix listed |
| pypi litestar(PyPI) | = 2.5.5 | No fix listed |
| pypi litestar(PyPI) | = 2.6.0 | No fix listed |
| pypi litestar(PyPI) | = 2.6.1 | No fix listed |
| pypi litestar(PyPI) | = 2.6.2 | No fix listed |
| pypi litestar(PyPI) | = 2.6.3 | No fix listed |
| litestar-org litestar | = >= 2.8.0, < 2.8.3 | No fix listed |
| litestar-org litestar | = >= 1.37.0, <= 1.51.14 | No fix listed |
| litestar-org litestar | = >= 2.7.0, < 2.7.2 | No fix listed |
| litestar-org litestar | = >= 2.0.0, < 2.6.4 | No fix listed |
| starliteproject starlite | >= 1.37.0, <= 1.51.14 | No fix listed |
| starliteproject starlite | >= 2.0.0, < 2.6.4 | 2.6.4 |
| starliteproject starlite | >= 2.7.0, < 2.7.2 | 2.7.2 |
| starliteproject starlite | >= 2.8.0, < 2.8.3 | 2.8.3 |
References
- https://github.com/litestar-org/litestar/security/advisories/GHSA-83pv-qr33-2vcf vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/litestar-org/litestar/commit/57e706e7effdc182fc9a2af5981bc88afb21851b patch
- github.com patch
- github.com product
- https://github.com/litestar-org/litestar/blob/main/litestar/static_files/base.py#L70
- pypi.org product
- github.com vendor-advisory