Skip to content
CVE Tracker
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API documentationPage
  • MCP serverPage
  • Data sourcesPage
  • ChangelogPage
  • AboutPage
  • How it's builtPage
Back

CVE-2024-45811

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

Medium4.8EPSS 1.1%
Published
Updated
Reserved
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.

Scores

CVSS scores of CVE-2024-45811, by who scored it
Scored byCVSSScoreVector
GitHub_MCNA (assigner)3.1Medium4.8CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
NVDNVD · Deferred3.1Medium4.8CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
EPSS (exploitation in 30 days)
1.1% · top 34% of all CVEs (6 Nov 2026)
CISA SSVC
Exploitation: poc · Automatable: no · Technical impact: partial
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.8.

Weakness

Affected products

  • vitejs · vite

    • affected >= 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 packages

From reviewed advisories of the GitHub Advisory Database.

References (2)

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2024-45811 badge
[![CVE-2024-45811](https://trackcve.app/badge/CVE-2024-45811.svg)](https://trackcve.app/cve/CVE-2024-45811)

Record last updated .