# CVE-2024-32982: Litestar and Starlite affected by Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.72%, higher than 55% of CVEs (2026-12-02)
- Published: 2024-05-06T14:20:50.000Z
- Modified: 2026-09-10T03:50:13.516Z
- Also known as: GHSA-83pv-qr33-2vcf, PYSEC-2026-1552, PYSEC-2026-2605
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- litestar-org litestar: >= 2.8.0, < 2.8.3; >= 1.37.0, <= 1.51.14; >= 2.7.0, < 2.7.2; >= 2.0.0, < 2.6.4
- starliteproject starlite: from 1.37.0 up to 1.51.14; from 2.0.0 before 2.6.4; from 2.7.0 before 2.7.2; from 2.8.0 before 2.8.3
- litestar (PyPI): from 2.8.0 before 2.8.3; from 2.7.0 before 2.7.2; from 2.0.0 before 2.6.4
- starlite (PyPI): from 1.37.0 before 1.51.16

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N`

## References

- <https://github.com/litestar-org/litestar/security/advisories/GHSA-83pv-qr33-2vcf> (web)
- <https://github.com/litestar-org/litestar/commit/57e706e7effdc182fc9a2af5981bc88afb21851b> (web)
- <https://github.com/litestar-org/litestar/blob/main/litestar/static_files/base.py#L70> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-32982> (advisory)
- <https://github.com/litestar-org/litestar/commit/a07b79b84d8717bec5ac4d4674c1e4920ba9c813> (web)
- <https://github.com/litestar-org/litestar> (package)
- <https://pypi.org/project/litestar> (package)
- <https://github.com/advisories/GHSA-83pv-qr33-2vcf> (advisory)

## Sources

- CVE List: [CVE-2024-32982](https://www.cve.org/CVERecord?id=CVE-2024-32982), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-83pv-qr33-2vcf](https://github.com/advisories/GHSA-83pv-qr33-2vcf), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-32982](https://nvd.nist.gov/vuln/detail/CVE-2024-32982), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1552](https://osv.dev/vulnerability/PYSEC-2026-1552), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-2605](https://osv.dev/vulnerability/PYSEC-2026-2605), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2024-32982 · Whole record: https://cve.day/CVE-2024-32982.json · Rebuilt by cve.day 2026-11-25T22:58:39.993Z
