CVE-2023-34092
Published: 01 June 2023
Summary
CVE-2023-34092 is a high-severity Path Equivalence: '//multiple/leading/slash' (CWE-50) vulnerability in Vitejs Vite. Its CVSS base score is 7.5 (High).
Operationally, ranked in the top 1.8% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
Vite is a frontend build tooling package whose development server is affected by a path traversal issue in all releases prior to 2.9.16, 3.2.7, 4.0.5, 4.1.5, 4.2.3, and 4.3.9. The server.fs.deny mechanism, which blocks access to files matching patterns such as .env, .env.*, and *.crt or *.pem, can be circumvented by inserting a double forward slash in request paths, exposing any file located directly in the project root.
Only instances that have been deliberately made reachable over the network (via the --host command-line flag or the server.host configuration option) are impacted. An unauthenticated remote attacker who can reach such a server can retrieve the contents of any file in the immediate project root, including secrets that the deny list was intended to protect, resulting in high confidentiality impact with no authentication or user interaction required.
The official advisory GHSA-353f-5xf4-qw67 and the associated pull request and commits document the root-cause fix and list the six patched versions that close the bypass. The EPSS score has remained flat at its current peak of 0.5673 with no material upward movement after disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2023-1665
Vulnerability details
Vite provides frontend tooling. Prior to versions 2.9.16, 3.2.7, 4.0.5, 4.1.5, 4.2.3, and 4.3.9, Vite Server Options (`server.fs.deny`) can be bypassed using double forward-slash (//) allows any unauthenticated user to read file from the Vite root-path of the application including…
more
the default `fs.deny` settings (`['.env', '.env.*', '*.{crt,pem}']`). Only users explicitly exposing the Vite dev server to the network (using `--host` or `server.host` config option) are affected, and only files in the immediate Vite project root folder could be exposed. This issue is fixed in vite@4.3.9, vite@4.2.3, vite@4.1.5, vite@4.0.5, vite@3.2.7, and vite@2.9.16.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Automated marking applies security attributes to system outputs, making it harder for attackers to exploit unmarked sensitive information leading to unauthorized exposure.
Proper attribute retention and permitted-value enforcement limits unauthorized actors from accessing sensitive information lacking correct labels.
Prevents unauthorized exposure of sensitive information by prohibiting untrusted external systems from processing or storing it.
By enforcing authorization matching prior to sharing, the control reduces the risk of exposing sensitive information to unauthorized actors.
Review and removal of nonpublic information from publicly accessible systems directly prevents exposure of sensitive data to unauthorized actors.
Data mining protection mechanisms detect and block unauthorized bulk extraction of sensitive data, directly mitigating exposure to unauthorized actors.
Literacy training teaches users to recognize and avoid actions that result in unauthorized exposure of sensitive information.
Retaining and monitoring training records confirms personnel have completed privacy and security awareness training on handling sensitive data, reducing the chance of unauthorized exposure due to lack of knowledge.