server.fs.deny bypassed when using ?import&raw in vite
CVE-2024-45811Published 17 Sep 2024, 20:08 UTC
Real-world risk
1.0/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
4.8
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| ViteUbiquitous | >= 5.4.0, < 5.4.6; >= 5.3.0, < 5.3.6; >= 5.0.0, < 5.2.14; >= 4.0.0, < 4.5.5; < 3.2.11 | 5.4.6, 5.3.6, 5.2.14, 4.5.5, 3.2.11 |
What to do
Update to a fixed version: 5.4.6, 5.3.6, 5.2.14, 4.5.5, 3.2.11.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | AdjacentSame Wi-Fi, Bluetooth range or network segment | From the CVSS vector | 0.40 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- CISA SSVC: proof of concept
EPSS 1.1% chance of exploitation in 30 days (percentile 67), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.126
- Threat T3: Public proof of concept0.950
- 10 × impact 0.8 × prerequisites 0.126 × threat 0.950.958
- Rounded to one decimal between 0.1 and 101.0
Exploitation and evidence timeline
- 17 Sep 2024 Published
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 1.0 (cvss fallback)
Weakness
CWE-200, CWE-284