CVE-2024-23331

Vite dev server option `server.fs.deny` can be bypassed when hosted on case-insensitive filesystem

HIGH
7.5
CVSS Score
Published: January 19, 2024 at 07:43 PM UTC
Updated: June 17, 2026 at 07:12 AM UTC
1 product affected across 1 vendorVite· also runs on 1 platform

Using vite by vitejs?

Get instant alerts when new vulnerabilities affect vite - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.8%
SSVC
PoC

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 [email protected], [email protected], [email protected], and [email protected]. Users are advised to upgrade. Users unable to upgrade should restrict access to dev servers.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 2.9.17v < 3.2.8v < 4.5.2v < 5.0.122.7.0 ≤ v < 2.9.173.0.0 ≤ v < 3.2.84.0.0 ≤ v < 4.5.25.0.0 ≤ v < 5.0.12
Affected range stops below 2.9.17, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.2.8, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.5.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.0.12, so it looks safe — our inference, not a vendor statement
microsoft-windows (environment)

Runs on — not affected

The affected product only carries this flaw when running on these platforms. The platforms themselves are not vulnerable.

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-178CWE-200CWE-284

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card