cve.bz

CVE-2024-45811 vitejs vite: Improper Access Control

4.8 mediumEPSS 1.1%Fix available

Medium (4.8) in vitejs vite. EPSS 1.1% estimated probability of exploitation activity in the next 30 days. Fixed in vite 3.2.11, 4.5.4, 5.1.8.

On this page
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.

Severity

CVSS 3.1

4.8 medium
CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 67th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-09-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
CWE-284 Improper Access Control
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-45811 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-45811?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-45811?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-45811 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
vitejs vite>= 5.4.0, < 5.4.6
vitejs vite>= 5.3.0, < 5.3.6
vitejs vite>= 5.0.0, < 5.2.14
vitejs vite>= 4.0.0, < 4.5.5
vitejs vite< 3.2.11

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-9cwx-2883-4wfxnpmvite>=5.4.0 <5.4.65.4.6
GHSA-9cwx-2883-4wfxnpmvite>=5.3.0 <5.3.65.3.6
GHSA-9cwx-2883-4wfxnpmvite>=5.2.0 <5.2.145.2.14
GHSA-9cwx-2883-4wfxnpmvite>=4.0.0 <4.5.44.5.4
GHSA-9cwx-2883-4wfxnpmvite<3.2.113.2.11
GHSA-9cwx-2883-4wfxnpmvite>=5.0.0 <5.1.85.1.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
openSUSETumbleweedvelociraptor0.7.0.4.git142.862ef23-1.1openSUSE-SU-2025:14663-1

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is classified as moderate rather than high severity because it requires specific conditions for exploitation. The attacker must have access to the Vite server, which typically runs in a local development environment rather than in production. Additionally, the bypass allows file access only if the file path is already known or predictable, limiting the attacker's ability to arbitrarily explore the file system. While it exposes file content outside the Vite serving allow list, the scope of access is constrained, and the impact can be mitigated by proper server configurations and deployment practices.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat OpenShift distributed tracing 3.4rhosdt/jaeger-query-rhel8:rhosdt-3.4Fixed 2024-12-10RHSA-2024:10917
Red Hat OpenShift distributed tracing 3.4rhosdt/jaeger-query-rhel8:rhosdt-3.4Fixed 2024-12-11RHSA-2024:10962
Red Hat Ansible Automation Platform 2automation-controllerAffected
Red Hat Ansible Automation Platform 2automation-eda-controllerNot affected
Red Hat JBoss Enterprise Application Platform 8viteNot affected
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-agent-rhel8Not affected
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-collector-rhel8Not affected
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-es-index-cleaner-rhel8Not affected
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-es-rollover-rhel8Not affected
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-ingester-rhel8Not affected
Red Hat OpenShift distributed tracing 3rhosdt/jaeger-query-rhel8Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-45811.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-284 (17), CWE-200 (59).

References

Check your stackJSON