Cyber Resilience

CVE-2023-34092

HighPublic PoC

Published: 01 June 2023

Published
01 June 2023
Modified
21 November 2024
KEV Added
Patch
CVSS Score v3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS Score 0.5673 98.2th percentile
Risk Priority 49 60% EPSS · 20% KEV · 20% CVSS

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

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

vitejs
vite
2.9.15 · 3.0.2 — 3.2.7 · 4.0.0 — 4.0.5 · 4.1.0 — 4.1.5

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.

addresses: CWE-200

Automated marking applies security attributes to system outputs, making it harder for attackers to exploit unmarked sensitive information leading to unauthorized exposure.

addresses: CWE-200

Proper attribute retention and permitted-value enforcement limits unauthorized actors from accessing sensitive information lacking correct labels.

addresses: CWE-200

Prevents unauthorized exposure of sensitive information by prohibiting untrusted external systems from processing or storing it.

addresses: CWE-200

By enforcing authorization matching prior to sharing, the control reduces the risk of exposing sensitive information to unauthorized actors.

addresses: CWE-200

Review and removal of nonpublic information from publicly accessible systems directly prevents exposure of sensitive data to unauthorized actors.

addresses: CWE-200

Data mining protection mechanisms detect and block unauthorized bulk extraction of sensitive data, directly mitigating exposure to unauthorized actors.

addresses: CWE-200

Literacy training teaches users to recognize and avoid actions that result in unauthorized exposure of sensitive information.

addresses: CWE-200

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.

References