7.5

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

CVSS: 7.5v3.1HighModified
AliasesCGA-5p6p-w95p-g76fCGA-w9h6-6pq4-chjcGHSA-c24v-8rfc-w8vw
Published 19-01-2024Last modified 17-06-2025

Vulnerability summary

CVE-2024-23331 is a high (CVSS 7.5) Improper Handling of Case Sensitivity vulnerability in vitejs vite. EPSS estimates a 0.78% chance of exploitation in the next 30 days, higher than 55.3% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
40/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
0.78%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 1 · Related 3

Timeline

  1. 19-01-2024
    PublishedVulnerability first disclosed.
  2. 17-06-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.78%

Chance of exploitation in the next 30 days

Percentile

55%

Versus all other CVEs

30-day change

0.00 pp

From 0.78% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.78%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • githubUnverified

    Vite

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Chainguard1 product
  • vite< 5.0.12-r0
Npm1 product
  • vite≥ 2.7.0, < 2.9.17 | ≥ 3.0.0, < 3.2.8 | ≥ 4.0.0, < 4.5.2 | ≥ 5.0.0, < 5.0.12
Vitejs1 product
  • vite≥ 2.7.0, < 2.9.17 | ≥ 3.0.0, < 3.2.8 | ≥ 4.0.0, < 4.5.2 | ≥ 5.0.0, < 5.0.12
Wolfi1 product
  • vite< 5.0.12-r0

4 vendors · 4 products

References

10 links