Skip to main content
← All vulnerabilities
CVE-2024-32982PYSEC-2026-1552GHSA-83PV-QR33-2VCFPYSEC-2026-2605

Litestar and Starlite affected by Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.8.3, 2.7.2, 2.6.4, 1.51.16
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

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

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

References 3

GitHub · litestar-org/litestar