CVE-2024-45811

server.fs.deny bypassed when using ?import&raw in vite

MEDIUM
4.8
CVSS Score
Published: September 17, 2024 at 08:08 PM UTC
Updated: June 17, 2026 at 07:54 AM UTC
1 product affected across 1 vendorVite

Using vite by vitejs?

Get instant alerts when new vulnerabilities affect vite - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.8
Exploit prediction
EPSS 1%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 3.2.11v < 4.5.5v < 5.2.14v < 5.3.6v < 5.4.64.0.0 ≤ v < 4.5.55.0.0 ≤ v < 5.2.145.3.0 ≤ v < 5.3.65.4.0 ≤ v < 5.4.64.0.05.0.05.3.05.4.0
Affected range stops below 3.2.11, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.5.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.2.14, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.3.6, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.4.6, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

4.8MEDIUMGitHub_M
Attack Vector
ADJACENT_NETWORK
Complexity
HIGH
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-200CWE-284

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card