一、 漏洞 CVE-2025-31125 基础信息
漏洞信息
                                        # Vite 的 `server.fs.deny` 在使用 `?import` 查询时被 `inline` 和 `raw` 绕过

## 漏洞概述

Vite是一款用于JavaScript的前端工具框架。由于特定条件下的文件加载机制,它可能会暴露非预期文件的内容。

## 影响版本

- 6.2.4 之前版本
- 6.1.3 之前版本
- 6.0.13 之前版本
- 5.4.16 之前版本
- 4.5.11 之前版本

## 细节

Vite使用`?inline&import`或`?raw?import`参数暴露非预期文件的内容。只有那些通过配置选项(例如 `--host` 或 `server.host`)使开发服务器在网络上可用的应用才会受到影响。

## 影响

如果应用通过网络对外暴露了Vite的开发服务器,且使用了受影响版本,则可能导致敏感或非预期文件内容被泄露。问题在上述指定的固定版本中得到了修复。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query
来源:美国国家漏洞数据库 NVD
漏洞描述信息
Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using ?inline&import or ?raw?import. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. This vulnerability is fixed in 6.2.4, 6.1.3, 6.0.13, 5.4.16, and 4.5.11.
来源:美国国家漏洞数据库 NVD
CVSS信息
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N
来源:美国国家漏洞数据库 NVD
漏洞类别
信息暴露
来源:美国国家漏洞数据库 NVD
漏洞标题
Vite 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Vite是Vite开源的一种新型的前端构建工具。 Vite存在安全漏洞,该漏洞源于存在暴露非允许文件内容问题。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2025-31125 的公开POC
# POC 描述 源链接 神龙链接
1 Vite 任意文件读取漏洞POC https://github.com/sunhuiHi666/CVE-2025-31125 POC详情
2 Path traversal vulnerability in Vite development server's @fs endpoint allows attackers to access files outside the intended directory. When exposed to the network, attackers can exploit this via crafted URLs to access sensitive system files. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-31125.yaml POC详情
3 Vite WASM Import Path Traversal 🛡️ https://github.com/0xgh057r3c0n/CVE-2025-31125 POC详情
4 Vite is a frontend tooling framework for javascript. Vite exposes content of non-allowed files using ?inline&import or ?raw?import. Only apps explicitly exposing the Vite dev server to the network (using --host or server.host config option) are affected. This vulnerability is fixed in 6.2.4, 6.1.3, 6.0.13, 5.4.16, and 4.5.11. https://github.com/harshgupptaa/Path-Transversal-CVE-2025-31125- POC详情
5 Vite Development Server's @fs endpoint (CVE-2025-31125) to access sensitive files like /etc/passwd and /etc/hosts via crafted URLs. https://github.com/MuhammadWaseem29/Vitejs-exploit POC详情
6 None https://github.com/nak000/Vitejs-exploit-CVE-2025-31125-rce POC详情
三、漏洞 CVE-2025-31125 的情报信息
四、漏洞 CVE-2025-31125 的评论

暂无评论


发表评论