Improper access control in Vite - CVE-2024-45811

 

Improper access control in Vite - CVE-2024-45811

Published: September 17, 2024 / Updated: April 8, 2026


Vulnerability identifier: #VU125303
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2024-45811
CWE-ID: CWE-284
Exploitation vector: Adjecent network
Exploit availability: No public exploit available
Vendor: Vite
Affected software:
Vite

Detailed vulnerability description

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to improper access control in the @fs file serving mechanism when handling requests with the ?import&raw query parameter. A remote attacker can send a specially crafted request to disclose sensitive information.

User interaction is required.


How to mitigate CVE-2024-45811

Install security update from vendor's website.

Sources