CVE-2023-54418: Nuxt 3.0.0-rc.1 < 3.0.0-rc.13 Unauthenticated Arbitrary File Read via Vite Dev Server
Nuxt 3.0.0-rc.1 before 3.0.0-rc.13 contains an arbitrary file read vulnerability caused by the Vite dev server default setting vite.server.fs.strict=false. Unauthenticated attackers can request /nuxt/@fs/<absolute path> with a raw query to read arbitrary files like /etc/passwd from the system. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-18.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to unauthenticated file reads?
Nuxt versions from 3.0.0-rc.1 through versions before 3.0.0-rc.13 are affected when the Vite development server is reachable by an attacker. No authentication is required.
What does an attacker need to send to exploit the issue?
An attacker can request /_nuxt/@fs/<absolute path> with a raw query. This can expose arbitrary readable files on the host, such as /etc/passwd.
Is the default Vite development-server configuration affected?
Yes. The issue is caused by the default setting vite.server.fs.strict=false in the affected Nuxt releases.
How can I check for attempted exploitation?
Review web or reverse-proxy logs for requests to /_nuxt/@fs/ followed by absolute filesystem paths, particularly requests containing raw query strings. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-18.