{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-23331","id":"CVE-2024-23331","title":"Vite dev server option `server.fs.deny` can be bypassed when hosted on case-insensitive filesystem","description":"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 g","descriptionLong":"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.","published":"2024-01-19T19:43:17.404Z","updated":"2026-11-11T10:31:13.463032218Z","reserved":"2024-01-15T15:19:19.442Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["vitejs vite"],"affectedProducts":[{"vendor":"vitejs","product":"vite","defaultStatus":null,"versions":[{"version":">=2.7.0, < 2.9.17","status":"affected"},{"version":">=3.0.0, <3.2.8","status":"affected"},{"version":">=4.0.0, < 4.5.2","status":"affected"},{"version":">=5.0.0, < 5.0.12","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"vite","purl":"pkg:npm/vite","ranges":[">=2.7.0 <2.9.17",">=3.0.0 <3.2.8",">=4.0.0 <4.5.2",">=5.0.0 <5.0.12"],"fixed":["2.9.17","3.2.8","4.5.2","5.0.12"],"advisory":"GHSA-c24v-8rfc-w8vw"}],"cwes":["CWE-178","CWE-200","CWE-284"],"aliases":["GHSA-c24v-8rfc-w8vw"],"references":[{"url":"https://github.com/vitejs/vite/security/advisories/GHSA-c24v-8rfc-w8vw","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/vitejs/vite/commit/91641c4da0a011d4c5352e88fc68389d4e1289a5","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://vitejs.dev/config/server-options.html#server-fs-deny","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/23xxx/CVE-2024-23331.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23331","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-34092","tags":["advisory"]},{"url":"https://github.com/vitejs/vite/commit/0cd769c279724cf27934b1270fbdd45d68217691","tags":["web"]},{"url":"https://github.com/vitejs/vite/commit/a26c87d20f9af306b5ce3ff1648be7fa5146c278","tags":["web"]},{"url":"https://github.com/vitejs/vite/commit/eeec23bbc9d476c54a3a6d36e78455867185a7cb","tags":["web"]},{"url":"https://github.com/vitejs/vite","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00785,"epssPercentile":0.5679,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-23331","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23331","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-23331","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-c24v-8rfc-w8vw","ok":true,"note":"GHSA-c24v-8rfc-w8vw"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-23331","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}