# CVE-2024-45811: server.fs.deny bypassed when using ?import&raw in vite

- Priority: **Routine**
- Reason: Not severe (CVSS 4.8, adjacent network); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-09-17 · Modified: 2024-09-18
- Aliases: CGA-7c99-fr97-893h, CGA-7xqq-wmp8-52px, GHSA-9cwx-2883-4wfx
- Record: https://cvemate.com/vulnerability/CVE-2024-45811 · JSON: https://cvemate.com/vulnerability/CVE-2024-45811/json

## Description

```text
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.
```

## Signals

- CVSS: 4.8 medium (v3.1, CVE.org) CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
- EPSS: 1.105%, percentile 66.887%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard vite (Chainguard): \< 5.4.6-r0
- wolfi vite (Wolfi): \< 5.4.6-r0
- Npm vite (Npm): ≥ 5.4.0, \< 5.4.6 \| ≥ 5.3.0, \< 5.3.6 \| ≥ 5.2.0, \< 5.2.14 \| ≥ 4.0.0, \< 4.5.4 \| \< 3.2.11 \| ≥ 5.0.0, \< 5.1.8
- vitejs vite: ≥ 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

## References

- <https://github.com/vitejs/vite/security/advisories/GHSA-9cwx-2883-4wfx>
- <https://github.com/vitejs/vite/commit/6820bb3b9a54334f3268fc5ee1e967d2e1c0db34>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45811.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45811>
- <https://github.com/vitejs/vite/commit/4573a6fd6f1b097fb7296a3e135e0646b996b249>
- <https://github.com/vitejs/vite/commit/8339d7408668686bae56eaccbfdc7b87612904bd>
- <https://github.com/vitejs/vite/commit/a6da45082b6e73ddfdcdcc06bb5414f976a388d6>
- <https://github.com/vitejs/vite/commit/b901438f99e667f76662840826eec91c8ab3b3e7>
- <https://github.com/vitejs/vite>

---

Data as of 2026-12-05T10:18:16.381Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
