kcve.ai취약점 정보 · 내 자산 확인

CVE-2025-30208 Vite bypasses server.fs.deny when using `?raw??`

Vite는 `?raw?`를 사용할 때 server.fs.deny를 우회합니다.

설명

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.

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. URL에 `?raw?` 또는 `?import&raw?`를 추가하면 이 제한이 무시되고 존재하는 경우 파일 내용이 반환됩니다. 이 바이패스는 `?`와 같은 후행 구분자가 여러 곳에서 제거되지만 쿼리 문자열 정규 표현식에서 설명되지 않기 때문에 존재합니다. 임의의 파일의 내용은 브라우저로 반환될 수 있습니다. Vite dev 서버를 네트워크에 명시적으로 노출하는 앱만 (`--host` 또는 `server.host` 구성 옵션을 사용하여) 영향을 받습니다. 버전 6.2.3, 6.1.2, 6.0.12, 5.4.15 및 4.5.10은 문제를 해결합니다.

영향 받는 제품 제품 1개

  • vitejs

    vite

    해결 버전 있음

    영향 받는 버전

    • 4.5.10 미만
    • 5.0.0 이상 5.4.15 미만
    • 6.0.0 이상 6.0.12 미만
    • 6.1.0 이상 6.1.2 미만
    • 6.2.0 이상 6.2.3 미만

    해결 버전

    • 4.5.10 이상
    • 5.4.15 이상
    • 6.0.12 이상
    • 6.1.2 이상
    • 6.2.3 이상

참고 자료 6건

‹ 목록

점검 지원 범위 문의

도입 문의