PT-2024-19813 · Vite · Vite

Dariushoule

·

Published

2024-01-19

·

Updated

2025-01-17

·

CVE-2024-23331

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Vite versions prior to 2.9.17 Vite versions prior to 3.2.8 Vite versions prior to 4.5.2 Vite versions prior to 5.0.12
Description The Vite dev server option server.fs.deny can be bypassed on case-insensitive file systems using case-augmented versions of filenames, notably affecting servers hosted on Windows. This bypass is possible because picomatch defaults to case-sensitive glob matching, but the file server does not discriminate. By requesting raw filesystem paths using augmented casing, the matcher derived from config.server.fs.deny fails to block access to sensitive files.
Recommendations For versions prior to 2.9.17, upgrade to version 2.9.17 or later. For versions prior to 3.2.8, upgrade to version 3.2.8 or later. For versions prior to 4.5.2, upgrade to version 4.5.2 or later. For versions prior to 5.0.12, upgrade to version 5.0.12 or later. As a temporary workaround, consider restricting access to dev servers until a patch is available.

Exploit

Fix

Information Disclosure

Improper Access Control

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-23331
GHSA-C24V-8RFC-W8VW
OPENSUSE-SU-2025:14663-1

Affected Products

Vite