{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-45811",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-09-09T14:23:07.505Z",
        "datePublished": "2024-09-17T20:08:11.801Z",
        "dateUpdated": "2024-09-18T14:06:21.732Z"
    },
    "containers": {
        "cna": {
            "title": "server.fs.deny bypassed when using ?import&raw in vite",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-200",
                            "lang": "en",
                            "description": "CWE-200: Exposure of Sensitive Information to an Unauthorized Actor",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-284",
                            "lang": "en",
                            "description": "CWE-284: Improper Access Control",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "HIGH",
                        "attackVector": "ADJACENT_NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 4.8,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "NONE",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/vitejs/vite/security/advisories/GHSA-9cwx-2883-4wfx",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/vitejs/vite/security/advisories/GHSA-9cwx-2883-4wfx"
                },
                {
                    "name": "https://github.com/vitejs/vite/commit/6820bb3b9a54334f3268fc5ee1e967d2e1c0db34",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/vitejs/vite/commit/6820bb3b9a54334f3268fc5ee1e967d2e1c0db34"
                }
            ],
            "affected": [
                {
                    "vendor": "vitejs",
                    "product": "vite",
                    "versions": [
                        {
                            "version": ">= 5.4.0, < 5.4.6",
                            "status": "affected"
                        },
                        {
                            "version": ">= 5.3.0, < 5.3.6",
                            "status": "affected"
                        },
                        {
                            "version": ">= 5.0.0, < 5.2.14",
                            "status": "affected"
                        },
                        {
                            "version": ">= 4.0.0, < 4.5.5",
                            "status": "affected"
                        },
                        {
                            "version": "< 3.2.11",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-09-17T20:08:11.801Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "Vite a frontend build tooling framework for javascript. In affected versions the contents of arbitrary files can be returned to the browser. `@fs` denies access to files outside of Vite serving allow list. Adding `?import&raw` to the URL bypasses this limitation and returns the file content if it exists. This issue has been patched in versions 5.4.6, 5.3.6, 5.2.14, 4.5.5, and 3.2.11. Users are advised to upgrade. There are no known workarounds for this vulnerability."
                }
            ],
            "source": {
                "advisory": "GHSA-9cwx-2883-4wfx",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "vitejs",
                        "product": "vite",
                        "cpes": [
                            "cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "5.4.0",
                                "status": "affected",
                                "lessThan": "5.4.6",
                                "versionType": "custom"
                            },
                            {
                                "version": "5.3.0",
                                "status": "affected",
                                "lessThan": "5.3.6",
                                "versionType": "custom"
                            },
                            {
                                "version": "5.0.0",
                                "status": "affected",
                                "lessThan": "5.2.14",
                                "versionType": "custom"
                            },
                            {
                                "version": "4.0.0",
                                "status": "affected",
                                "lessThan": "4.5.5",
                                "versionType": "custom"
                            },
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "3.2.11",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-09-18T13:59:58.812671Z",
                                "id": "CVE-2024-45811",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-09-18T14:06:21.732Z"
                }
            }
        ]
    }
}