Litestar and Starlite affected by Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-32982
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 19:45 UTC · Revision 1
Source evidence
Litestar and Starlite affected by Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
core-osv · Original sourcePublished 6 May 2024, 14:38 UTC
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.
osv:CVE-2024-32982
Complete source record
{
"id": "5c61b194fa28066d7b8d567dc78611785c7d4cead5d77ec375e67af148d29ede",
"url": "https://osv.dev/vulnerability/CVE-2024-32982",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Litestar and Starlite affected by Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
"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.",
"evidence": "osv:CVE-2024-32982",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-32982",
"aliases": [
"CVE-2024-32982",
"GHSA-83pv-qr33-2vcf",
"PYSEC-2026-1552",
"PYSEC-2026-2605"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/litestar-org/litestar",
"type": "GIT",
"events": [
{
"introduced": "238b3c43740a9c93a1c4e60f18559709940b0ece"
},
{
"fixed": "743d8ec2680ffb640d53e213d69fcbe79079df2f"
},
{
"introduced": "a1cf415f7189ee275ac4e55b3f2d27156d913ae9"
},
{
"last_affected": "18c4521c932f5c7ec1bb78870517847829d7ae33"
},
{
"introduced": "d292aacd537de6150ea68788f4042cbae2ac5816"
},
{
"fixed": "9c1db97c1f2a79c960c59156b983040619bdda27"
},
{
"introduced": "d442e7c75059ba4e979e4f9482e6aa484bfde45d"
},
{
"fixed": "8b8b9990c7283b91093a6afb8ff2d46ab3258fd6"
},
{
"fixed": "57e706e7effdc182fc9a2af5981bc88afb21851b"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "2.8.0"
},
{
"fixed": "2.8.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "1.37.0"
},
{
"last_affected": "1.51.14"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "2.7.0"
},
{
"fixed": "2.7.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.6.4"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "57e706e7effdc182fc9a2af5981bc88afb21851b"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v2.7.1",
"v2.6.3",
"v2.8.2",
"v2.8.1",
"v2.8.0",
"v2.7.0",
"v2.6.2",
"v2.6.1",
"v2.6.0",
"v2.5.5",
"v2.5.4",
"v2.5.3",
"v2.5.2",
"v2.5.1",
"v2.5.0",
"v2.4.5",
"v2.4.4",
"v2.4.3",
"v2.4.2",
"v2.4.1",
"v2.4.0",
"v2.3.2",
"v2.3.1",
"v2.3.0",
"v2.2.1",
"v2.2.0",
"v2.1.1",
"v2.1.0",
"v2.0.0",
"v1.51.14",
"v1.51.13",
"v1.51.12",
"v1.51.11",
"v1.51.10",
"v1.51.9",
"v1.51.8",
"v1.51.7",
"v1.51.6",
"v1.51.5",
"v1.51.4",
"v1.51.3",
"v1.51.2",
"v1.51.1",
"v1.51.0",
"v1.50.2",
"v1.50.1",
"v1.50.0",
"v1.49.0",
"v1.48.1",
"v1.48.0",
"v1.47.0",
"v1.46.0",
"v1.45.1",
"v1.45.0",
"v1.44.0",
"v1.43.1",
"v1.43.0",
"v1.42.0",
"v1.41.0",
"v1.40.1",
"v1.40.0",
"v1.39.0",
"v1.38.0",
"v1.37.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-32982.json"
}
}
],
"modified": "2026-10-28T02:30:48.125975645Z",
"provider": "osv",
"references": [
"https://github.com/litestar-org/litestar/blob/main/litestar/static_files/base.py#L70",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32982.json",
"https://github.com/litestar-org/litestar/security/advisories/GHSA-83pv-qr33-2vcf",
"https://nvd.nist.gov/vuln/detail/CVE-2024-32982",
"https://github.com/litestar-org/litestar/commit/57e706e7effdc182fc9a2af5981bc88afb21851b"
],
"provider_metadata": {
"cwe_ids": [
"CWE-22"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32982.json"
}
},
"related_cves": [
{
"value": "CVE-2024-32982",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 516001,
"published_at": "2024-05-06T14:38:10.875+00:00"
}