{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-32982",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-04-22T15:14:59.167Z",
        "datePublished": "2024-05-06T14:38:10.875Z",
        "dateUpdated": "2024-08-02T02:27:53.331Z"
    },
    "containers": {
        "cna": {
            "title": "Litestar and Starlite affected by Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-22",
                            "lang": "en",
                            "description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 8.2,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "LOW",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/litestar-org/litestar/security/advisories/GHSA-83pv-qr33-2vcf",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/litestar-org/litestar/security/advisories/GHSA-83pv-qr33-2vcf"
                },
                {
                    "name": "https://github.com/litestar-org/litestar/commit/57e706e7effdc182fc9a2af5981bc88afb21851b",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/litestar-org/litestar/commit/57e706e7effdc182fc9a2af5981bc88afb21851b"
                },
                {
                    "name": "https://github.com/litestar-org/litestar/blob/main/litestar/static_files/base.py#L70",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/litestar-org/litestar/blob/main/litestar/static_files/base.py#L70"
                }
            ],
            "affected": [
                {
                    "vendor": "litestar-org",
                    "product": "litestar",
                    "versions": [
                        {
                            "version": ">= 2.8.0, < 2.8.3",
                            "status": "affected"
                        },
                        {
                            "version": ">= 1.37.0, <= 1.51.14",
                            "status": "affected"
                        },
                        {
                            "version": ">= 2.7.0, < 2.7.2",
                            "status": "affected"
                        },
                        {
                            "version": ">= 2.0.0, < 2.6.4",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-05-06T20:50:00.744Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "source": {
                "advisory": "GHSA-83pv-qr33-2vcf",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "starliteproject",
                        "product": "starlite",
                        "cpes": [
                            "cpe:2.3:a:starliteproject:starlite:1.37.0:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "1.37.0",
                                "status": "affected",
                                "lessThanOrEqual": "1.51.14",
                                "versionType": "custom"
                            }
                        ]
                    },
                    {
                        "vendor": "starliteproject",
                        "product": "starlite",
                        "cpes": [
                            "cpe:2.3:a:starliteproject:starlite:2.0.0:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "2.0.0",
                                "status": "affected",
                                "lessThan": "2.6.4",
                                "versionType": "custom"
                            }
                        ]
                    },
                    {
                        "vendor": "starliteproject",
                        "product": "starlite",
                        "cpes": [
                            "cpe:2.3:a:starliteproject:starlite:2.7.0:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "2.7.0",
                                "status": "affected",
                                "lessThan": "2.7.2",
                                "versionType": "custom"
                            }
                        ]
                    },
                    {
                        "vendor": "starliteproject",
                        "product": "starlite",
                        "cpes": [
                            "cpe:2.3:a:starliteproject:starlite:2.8.0:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "2.8.0",
                                "status": "affected",
                                "lessThan": "2.8.3",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-07-03T14:26:20.026909Z",
                                "id": "CVE-2024-32982",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-07-03T20:55:45.126Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T02:27:53.331Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/litestar-org/litestar/security/advisories/GHSA-83pv-qr33-2vcf",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/litestar-org/litestar/security/advisories/GHSA-83pv-qr33-2vcf"
                    },
                    {
                        "name": "https://github.com/litestar-org/litestar/commit/57e706e7effdc182fc9a2af5981bc88afb21851b",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/litestar-org/litestar/commit/57e706e7effdc182fc9a2af5981bc88afb21851b"
                    },
                    {
                        "name": "https://github.com/litestar-org/litestar/blob/main/litestar/static_files/base.py#L70",
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "https://github.com/litestar-org/litestar/blob/main/litestar/static_files/base.py#L70"
                    }
                ]
            }
        ]
    }
}