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

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.10%, higher than 66% of CVEs (2026-12-01)
- Published: 2024-09-17T18:44:12.000Z
- Modified: 2026-09-10T03:50:18.095Z
- Also known as: GHSA-9cwx-2883-4wfx
- Weaknesses: CWE-200, CWE-284
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- 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; from 5.4.0 before 5.4.6; from 5.3.0 before 5.3.6; from 5.0.0 before 5.2.14; from 4.0.0 before 4.5.5; before 3.2.11
- vite (npm): from 5.4.0 before 5.4.6; from 5.3.0 before 5.3.6; from 5.2.0 before 5.2.14; from 4.0.0 before 4.5.4; before 3.2.11; from 5.0.0 before 5.1.8

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/vitejs/vite/security/advisories/GHSA-9cwx-2883-4wfx> (web)
- <https://github.com/vitejs/vite/commit/6820bb3b9a54334f3268fc5ee1e967d2e1c0db34> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45811> (advisory)
- <https://github.com/vitejs/vite/commit/4573a6fd6f1b097fb7296a3e135e0646b996b249> (web)
- <https://github.com/vitejs/vite/commit/8339d7408668686bae56eaccbfdc7b87612904bd> (web)
- <https://github.com/vitejs/vite/commit/a6da45082b6e73ddfdcdcc06bb5414f976a388d6> (web)
- <https://github.com/vitejs/vite/commit/b901438f99e667f76662840826eec91c8ab3b3e7> (web)
- <https://github.com/vitejs/vite> (package)

## Sources

- CVE List: [CVE-2024-45811](https://www.cve.org/CVERecord?id=CVE-2024-45811), CVE Terms of Use, modified 2024-09-18
- GitHub Advisory Database: [GHSA-9cwx-2883-4wfx](https://github.com/advisories/GHSA-9cwx-2883-4wfx), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-45811](https://nvd.nist.gov/vuln/detail/CVE-2024-45811), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45811 · Whole record: https://cve.day/CVE-2024-45811.json · Rebuilt by cve.day 2026-11-25T22:58:45.518Z
