CVE-2024-45811
published medium CVSS 3.1 · 4.8server.fs.deny bypassed when using ?import&raw in vite
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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 | Affected | Not stated | GitHub_M |
| vitejs | — | vite5.4.0 to < 5.4.6 · 5.3.0 to < 5.3.6 · 5.0.0 to < 5.2.14 · 4.0.0 to < 4.5.5 · 0 to < 3.2.11 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| SUSE / openSUSE | openSUSE-Tumbleweed | velociraptoraarch64 | Advisory build | 0.7.0.4.git142.862ef23-1.1 | OPENSUSE-SU-2025:14663-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | velociraptorppc64le | Advisory build | 0.7.0.4.git142.862ef23-1.1 | OPENSUSE-SU-2025:14663-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | velociraptors390x | Advisory build | 0.7.0.4.git142.862ef23-1.1 | OPENSUSE-SU-2025:14663-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | velociraptorx86_64 | Advisory build | 0.7.0.4.git142.862ef23-1.1 | OPENSUSE-SU-2025:14663-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vitejs | vite | >= 5.4.0, < 5.4.6 (affected)>= 5.3.0, < 5.3.6 (affected)>= 5.0.0, < 5.2.14 (affected)>= 4.0.0, < 4.5.5 (affected)< 3.2.11 (affected) | GitHub_M · cna |
| vitejs | vite | 5.4.0 to < 5.4.6 (affected · custom)5.3.0 to < 5.3.6 (affected · custom)5.0.0 to < 5.2.14 (affected · custom)4.0.0 to < 4.5.5 (affected · custom)0 to < 3.2.11 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
2- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- CWE-284 CWE-284: Improper Access Control
References
2Provider assertions
2GitHub_M · cna
server.fs.deny bypassed when using ?import&raw in vite
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5de6e7c92f3c1feb7a5bf2a7c0366875ffc6a9b6a232a33dc50276f838584da4
- Ingested
- 23 Sep 2026, 08:27:47 UTC
- Source record
- Official CVE record