---
cve: "CVE-2024-23331"
severity: "HIGH"
cvss: 7.5
epss: "79%"
vendor: "vitejs"
kev: false
exploited: false
published: "2024-01-19 20:15:14"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-04T03:04:34+02:00"
---

# CVE-2024-23331

> 7.5 HIGH · 🧪 PoC

## Beschreibung

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.

## CVSS-Vektor

```
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |
| S Scope | Unverändert | good |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Keine | good |
| A Verfügbarkeit | Keine | good |

## Patch verfügbar (OSV)

- 3441f120fbd44b9c408706840647b4c8248b48fb (Commit)
- 7e3a86638e1585702e7fb8eaf8ede43740a6a44e (Commit)

## Referenzen

- <https://github.com/vitejs/vite/security/advisories/GHSA-c24v-8rfc-w8vw>
- <https://github.com/vitejs/vite/commit/91641c4da0a011d4c5352e88fc68389d4e1289a5>
- <https://vitejs.dev/config/server-options.html#server-fs-deny>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2024-23331) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
