CVE-2024-23331

HIGH EPSS 51.7%
Published Jan 19, 20242y ago · Modified Jun 17, 20262w ago
7.5 CVSS 3.1
High
Find Similar
Published Jan 19, 2024 2y ago
Last Modified Jun 17, 2026 2w ago

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 Details

Base Score
7.5
Exploitability
3.9
Impact
3.6
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality High
Integrity None
Availability None

Threat Intelligence

EPSS Exploit Probability
51.7% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 3

CWE-178
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor Information Exposure
CWE-284

Affected Products 5

VendorProductVersionRange
vitejsvite*≥2.7.0  –  <2.9.17
vitejsvite*≥3.0.0  –  <3.2.8
vitejsvite*≥4.0.0  –  <4.5.2
vitejsvite*≥5.0.0  –  <5.0.12
microsoftwindows*any

References 3

  • github.com https://github.com/vitejs/vite/commit/91641c4da0a011d4c5352e88fc68389d4e1289a5
    Patch
  • github.com https://github.com/vitejs/vite/security/advisories/GHSA-c24v-8rfc-w8vw
    ExploitVendor Advisory
  • vitejs.dev https://vitejs.dev/config/server-options.html#server-fs-deny
    Product

Remediation

  • github.com https://github.com/vitejs/vite/commit/91641c4da0a011d4c5352e88fc68389d4e1289a5
    Patch