{"id":"CVE-2024-23331","summary":"Vite dev server option `server.fs.deny` can be bypassed when hosted on case-insensitive filesystem","details":"Vite is a frontend tooling framework for javascript. The Vite dev server option `server.fs.deny` can be bypassed on case-insensitive file systems using case-augmented versions of filenames. Notably this affects servers hosted on Windows. This bypass is similar to CVE-2023-34092 -- with surface area reduced to hosts having case-insensitive filesystems. Since `picomatch` defaults to case-sensitive glob matching, but the file server doesn't discriminate; a blacklist bypass is possible. By requesting raw filesystem paths using augmented casing, the matcher derived from `config.server.fs.deny` fails to block access to sensitive files. This issue has been addressed in vite@5.0.12, vite@4.5.2, vite@3.2.8, and vite@2.9.17. Users are advised to upgrade. Users unable to upgrade should restrict access to dev servers.","aliases":["GHSA-c24v-8rfc-w8vw"],"modified":"2026-05-28T03:55:53.918547132Z","published":"2024-01-19T19:43:17.404Z","related":["CGA-rhqx-9rr2-h824","openSUSE-SU-2025:14663-1"],"database_specific":{"cwe_ids":["CWE-178","CWE-200","CWE-284"],"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/23xxx/CVE-2024-23331.json"},"references":[{"type":"WEB","url":"https://vitejs.dev/config/server-options.html#server-fs-deny"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/23xxx/CVE-2024-23331.json"},{"type":"ADVISORY","url":"https://github.com/vitejs/vite/security/advisories/GHSA-c24v-8rfc-w8vw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23331"},{"type":"FIX","url":"https://github.com/vitejs/vite/commit/91641c4da0a011d4c5352e88fc68389d4e1289a5"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/vitejs/vite","events":[{"introduced":"0c3125833033fec4356ab4e90e806e02e8644c40"},{"fixed":"ee81e196769c102a6b1bf30f8444ccde236e71d5"}]}],"versions":["v5.0.11","v5.0.10","v5.0.9","create-vite@5.1.0","v5.0.8","v5.0.7","v5.0.6","v5.0.5","v5.0.4","v5.0.3","plugin-legacy@5.2.0","v5.0.2","plugin-legacy@5.1.0","v5.0.1","create-vite@5.0.0","plugin-legacy@5.0.0","v5.0.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-23331.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}