4.8

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

Deferred
AliasesCGA-7c99-fr97-893hCGA-7xqq-wmp8-52pxGHSA-9cwx-2883-4wfx
Published 17-09-2024Last modified 18-09-2024

Vulnerability summary

CVE-2024-45811 is a medium (CVSS 4.8) vulnerability in vitejs vite. EPSS estimates a 1.10% chance of exploitation in the next 30 days, higher than 66.8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 4.8, adjacent network); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
4.8/10
010
Medium · v3.1 (CVE.org)
EPSS score
1.10%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 1 · Related 3

Timeline

  1. 17-09-2024
    PublishedVulnerability first disclosed.
  2. 18-09-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

1.10%

Chance of exploitation in the next 30 days

Percentile

67%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 1.10% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: adjacent network, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard1 product
  • vite< 5.4.6-r0
Npm1 product
  • 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
Vitejs1 product
  • 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
Wolfi1 product
  • vite< 5.4.6-r0

4 vendors · 4 products

References

9 links