CVE-2024-45811 json
server.fs.deny bypassed when using ?import&raw in vite
published 2024-09-17 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-2759 , GHSA-9cwx-2883-4wfx
- cvss
- 4.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 66%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm vite 3.2.11, 4.5.4, 5.1.8, 5.2.14, 5.3.6, 5.4.6
- vitejs vite 3.2.11, 4.5.5, 5.2.14, 5.3.6, 5.4.6
- velociraptor openSUSE Tumbleweed 0.7.0.4.git142.862ef23-1.1
opensuse advisories openSUSE-SU-2025:14663-1
- github.com/vitejs/vite@6820bb3 commit
- github.com/vitejs/vite@4573a6f commit
- github.com/vitejs/vite@8339d74 commit
- github.com/vitejs/vite@a6da450 commit
- github.com/vitejs/vite@b901438 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-45811 updated cvss 4.8
vite: server.fs.deny is bypassed when using `?import&raw`
-
Red Hat Ansible Automation Platform 2 automation-controller Red Hat OpenShift distributed tracing 3 rhosdt/tempo-jaeger-query-rhel8affected: workaround, no fix available
-
Red Hat OpenShift distributed tracing 3.4 rhosdtfixed: vendor fix RHSA-2024:10917
-
Red Hat Ansible Automation Platform 2 automation-eda-controller Red Hat JBoss Enterprise Application Platform 8 vite Red Hat OpenShift distributed tracing 3 rhosdt/jaeger-agent-rhel8, rhosdt/jaeger-ingester-rhel8, rhosdt/jaeger-collector-rhel8, rhosdt/jaeger-es-rollover-rhel8, rhosdt/jaeger-es-index-cleaner-rhel8 Red Hat OpenShift distributed tracing 3.4 rhosdtnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
1.10% chance of exploitation in the next 30 days, higher than 66% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.8 | CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | vite | >=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 |
5.4.6 5.3.6 5.2.14 4.5.4 3.2.11 5.1.8 |
Affected products
- vitejs vite
Classification
References
-
github.com
/vitejs/vite/commit/6820bb3b9a54334f3268fc5ee1e967d2e1c0db34
web
-
github.com
/vitejs/vite/commit/4573a6fd6f1b097fb7296a3e135e0646b996b249
web
-
github.com
/vitejs/vite/commit/8339d7408668686bae56eaccbfdc7b87612904bd
web
-
github.com
/vitejs/vite/commit/a6da45082b6e73ddfdcdcc06bb5414f976a388d6
web
-
github.com
/vitejs/vite/commit/b901438f99e667f76662840826eec91c8ab3b3e7
web
-
github.com
/vitejs/vite/security/advisories/GHSA-9cwx-2883-4wfx
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-45811
advisory
-
github.com
/vitejs/vite
package
Sources
- CVE List CVE-2024-45811
- GitHub Advisory GHSA-9cwx-2883-4wfx
- NVD CVE-2024-45811
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.