Vite dev server option `server.fs.deny` can be bypassed when hosted on case-insensitive filesystem
Published Jan 19, 2024
7.5
HIGHCVSS 3.1
EPSS 0.78%
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 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.
Affected products
-
- Version >=2.7.0, < 2.9.17StatusaffectedConstraints-
- Version >=3.0.0, <3.2.8StatusaffectedConstraints-
- Version >=4.0.0, < 4.5.2StatusaffectedConstraints-
- Version >=5.0.0, < 5.0.12StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
No data.
No Red Hat product state for this CVE.
vite
npm
Introduced 4.0.0 Fixed 4.5.2vite
npm
Introduced 5.0.0 Fixed 5.0.12vite
npm
Introduced 2.7.0 Fixed 2.9.17vite
npm
Introduced 3.0.0 Fixed 3.2.8
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | vite | 4.0.0 | 4.5.2 |
| npm | vite | 5.0.0 | 5.0.12 |
| npm | vite | 2.7.0 | 2.9.17 |
| npm | vite | 3.0.0 | 3.2.8 |
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
PoCAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed Jan 22, 2024 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2024–2026- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (7 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.78% (0.00785) | 54.44th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.79% (0.00791) | 51.32th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.28% (0.00282) | 49.53th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.07% (0.00065) | 30.58th | v3 (v2023.03.01) |
| Jul 13, 2024 | 0.07% (0.00065) | 28.94th | v3 (v2023.03.01) |
| Jan 30, 2024 | 0.07% (0.00065) | 26.90th | v3 (v2023.03.01) |
| Jan 24, 2024 | 0.04% (0.00045) | 12.41th | v3 (v2023.03.01) |
References (9)
- https://github.com/advisories/GHSA-c24v-8rfc-w8vw Advisory
- https://github.com/vitejs/vite/commit/0cd769c279724cf27934b1270fbdd45d68217691
- https://github.com/vitejs/vite/commit/91641c4da0a011d4c5352e88fc68389d4e1289a5 x_refsource_MISCPatch
- https://github.com/vitejs/vite/commit/a26c87d20f9af306b5ce3ff1648be7fa5146c278
- https://github.com/vitejs/vite/commit/eeec23bbc9d476c54a3a6d36e78455867185a7cb
- https://github.com/vitejs/vite/security/advisories/GHSA-c24v-8rfc-w8vw x_refsource_CONFIRMExploitVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2023-34092
- https://nvd.nist.gov/vuln/detail/CVE-2024-23331
- https://vitejs.dev/config/server-options.html#server-fs-deny x_refsource_MISCProduct
Change history (0)
No recorded changes yet.