cve.bz

CVE-2024-23331 vitejs vite: Improper Handling of Case Sensitivity

7.5 highExploit referenceEPSS 0.8%Fix available

High (7.5) in vitejs vite. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in vite 2.9.17, 3.2.8, 4.5.2.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-01-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-178 Improper Handling of Case Sensitivity
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
CWE-284 Improper Access Control
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-23331 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-23331?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-23331?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-23331 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
vitejs:vitefrom 2.7.0 before 2.9.17
vitejs:vitefrom 3.0.0 before 3.2.8
vitejs:vitefrom 4.0.0 before 4.5.2
vitejs:vitefrom 5.0.0 before 5.0.12

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c24v-8rfc-w8vwnpmvite>=2.7.0 <2.9.172.9.17
GHSA-c24v-8rfc-w8vwnpmvite>=3.0.0 <3.2.83.2.8
GHSA-c24v-8rfc-w8vwnpmvite>=4.0.0 <4.5.24.5.2
GHSA-c24v-8rfc-w8vwnpmvite>=5.0.0 <5.0.125.0.12

Linux distributions

DistributionReleasePackageFixed inAdvisory
openSUSETumbleweedvelociraptor0.7.0.4.git142.862ef23-1.1openSUSE-SU-2025:14663-1

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: openSUSE.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-284 (17), CWE-200 (59).

References

Check your stackJSON