CVE-2024-45811

server.fs.deny bypassed when using ?import&raw in vite

Published Sep 17, 2024 CVSS 3.1 · 4.8 Medium EPSS 1.1% KEV · Not listed
Description
Vite a frontend build tooling framework for javascript. In affected versions the contents of arbitrary files can be returned to the browser. `@fs` denies access to files outside of Vite serving allow list. Adding `?import&raw` to the URL bypasses this limitation and returns the file content if it exists. This issue has been patched in versions 5.4.6, 5.3.6, 5.2.14, 4.5.5, and 3.2.11. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-2759 Vite a frontend build tooling framework for javascript. In affected versions the contents of arbitrary files can be returned to the browser. `@fs` denies access to files outside of Vite serving allow list. Adding `?import&raw` to the URL bypasses this limitation and returns the file content if it exists. This issue has been patched in versions 5.4.6, 5.3.6, 5.2.14, 4.5.5, and 3.2.11. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Github GHSA Github GHSA GHSA-9cwx-2883-4wfx Vite's `server.fs.deny` is bypassed when using `?import&raw`
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00045}

epss

{'score': 0.00047}

Type Values Removed Values Added
First Time appeared Redhat
Redhat openshift Distributed Tracing
CPEs cpe:/a:redhat:openshift_distributed_tracing:3.4::el8
Vendors & Products Redhat
Redhat openshift Distributed Tracing
Type Values Removed Values Added
First Time appeared Vitejs
Vitejs vite
CPEs cpe:2.3:a:vitejs:vite:*:*:*:*:*:node.js:*:*
Vendors & Products Vitejs
Vitejs vite
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Vite a frontend build tooling framework for javascript. In affected versions the contents of arbitrary files can be returned to the browser. `@fs` denies access to files outside of Vite serving allow list. Adding `?import&raw` to the URL bypasses this limitation and returns the file content if it exists. This issue has been patched in versions 5.4.6, 5.3.6, 5.2.14, 4.5.5, and 3.2.11. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Title server.fs.deny bypassed when using ?import&raw in vite
Weaknesses CWE-200
CWE-284
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 18, 2024, 2:06 PM
Reserved
Sep 9, 2024, 2:23 PM
Status
Deferred
Published
Sep 17, 2024, 8:15 PM
Modified
Jun 17, 2026, 7:54 AM
Severity
Moderate
Public date
Sep 17, 2024, 6:44 PM