CVE-2024-23331

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-23331
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-23331.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-23331
Aliases
Downstream
Related
Published
2024-01-19T19:43:17Z
Modified
2025-10-15T07:17:17.480376Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Vite dev server option `server.fs.deny` can be bypassed when hosted on case-insensitive filesystem
Details

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.

References

Affected packages

Git / github.com/vitejs/vite

Affected ranges

Type
GIT
Repo
https://github.com/vitejs/vite
Events
Type
GIT
Repo
https://github.com/vitejs/vite
Events
Type
GIT
Repo
https://github.com/vitejs/vite
Events
Type
GIT
Repo
https://github.com/vitejs/vite
Events

Affected versions

create-vite@4.*

create-vite@4.0.0
create-vite@4.1.0
create-vite@4.1.0-beta.0
create-vite@4.2.0
create-vite@4.2.0-beta.0
create-vite@4.2.0-beta.1
create-vite@4.3.0
create-vite@4.3.0-beta.0
create-vite@4.3.1
create-vite@4.3.2
create-vite@4.4.0
create-vite@4.4.1

create-vite@5.*

create-vite@5.0.0
create-vite@5.1.0

plugin-legacy@3.*

plugin-legacy@3.0.0
plugin-legacy@3.0.1

plugin-legacy@4.*

plugin-legacy@4.0.0
plugin-legacy@4.0.1
plugin-legacy@4.0.2
plugin-legacy@4.0.3
plugin-legacy@4.0.4
plugin-legacy@4.0.5
plugin-legacy@4.1.0
plugin-legacy@4.1.1

plugin-legacy@5.*

plugin-legacy@5.0.0
plugin-legacy@5.1.0
plugin-legacy@5.2.0

v4.*

v4.0.0
v4.0.1
v4.0.2
v4.0.3
v4.0.4
v4.1.0
v4.1.0-beta.0
v4.1.0-beta.1
v4.1.0-beta.2
v4.1.1
v4.1.2
v4.1.3
v4.1.4
v4.2.0
v4.2.0-beta.0
v4.2.0-beta.1
v4.2.0-beta.2
v4.2.1
v4.3.0
v4.3.0-beta.0
v4.3.0-beta.1
v4.3.0-beta.2
v4.3.0-beta.3
v4.3.0-beta.4
v4.3.0-beta.5
v4.3.0-beta.6
v4.3.0-beta.7
v4.3.0-beta.8
v4.3.1
v4.3.2
v4.3.3
v4.3.4
v4.3.5
v4.3.6
v4.3.7
v4.3.8
v4.3.9
v4.4.0
v4.4.0-beta.0
v4.4.0-beta.1
v4.4.0-beta.2
v4.4.0-beta.3
v4.4.0-beta.4
v4.4.1
v4.4.10
v4.4.11
v4.4.2
v4.4.3
v4.4.4
v4.4.5
v4.4.6
v4.4.7
v4.4.8
v4.4.9
v4.5.0
v4.5.1

v5.*

v5.0.0
v5.0.1
v5.0.10
v5.0.11
v5.0.2
v5.0.3
v5.0.4
v5.0.5
v5.0.6
v5.0.7
v5.0.8
v5.0.9