From d4e8f4a196eea15dfef068cd6e513da6de101760 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Mon, 31 Mar 2025 17:33:30 +0000 Subject: [PATCH] Publish GHSA-4r4m-qw57-chr8 --- .../GHSA-4r4m-qw57-chr8.json | 138 ++++++++++++++++++ 1 file changed, 138 insertions(+) create mode 100644 advisories/github-reviewed/2025/03/GHSA-4r4m-qw57-chr8/GHSA-4r4m-qw57-chr8.json diff --git a/advisories/github-reviewed/2025/03/GHSA-4r4m-qw57-chr8/GHSA-4r4m-qw57-chr8.json b/advisories/github-reviewed/2025/03/GHSA-4r4m-qw57-chr8/GHSA-4r4m-qw57-chr8.json new file mode 100644 index 00000000000..5e4a8c875be --- /dev/null +++ b/advisories/github-reviewed/2025/03/GHSA-4r4m-qw57-chr8/GHSA-4r4m-qw57-chr8.json @@ -0,0 +1,138 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-4r4m-qw57-chr8", + "modified": "2025-03-31T17:31:54Z", + "published": "2025-03-31T17:31:54Z", + "aliases": [ + "CVE-2025-31125" + ], + "summary": "Vite has a `server.fs.deny` bypassed for `inline` and `raw` with `?import` query", + "details": "### Summary\n\nThe contents of arbitrary files can be returned to the browser.\n\n### Impact\nOnly apps explicitly exposing the Vite dev server to the network (using `--host` or [`server.host` config option](https://vitejs.dev/config/server-options.html#server-host)) are affected.\n\n### Details\n\n- base64 encoded content of non-allowed files is exposed using `?inline&import` (originally reported as `?import&?inline=1.wasm?init`)\n- content of non-allowed files is exposed using `?raw?import`\n\n`/@fs/` isn't needed to reproduce the issue for files inside the project root.\n\n### PoC\n\nOriginal report (check details above for simplified cases):\n\nThe ?import&?inline=1.wasm?init ending allows attackers to read arbitrary files and returns the file content if it exists. Base64 decoding needs to be performed twice\n```\n$ npm create vite@latest\n$ cd vite-project/\n$ npm install\n$ npm run dev\n```\n\nExample full URL `http://localhost:5173/@fs/C:/windows/win.ini?import&?inline=1.wasm?init`", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "npm", + "name": "vite" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "6.2.0" + }, + { + "fixed": "6.2.4" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "vite" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "6.1.0" + }, + { + "fixed": "6.1.3" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "vite" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "6.0.0" + }, + { + "fixed": "6.0.13" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "vite" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "5.0.0" + }, + { + "fixed": "5.4.16" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "vite" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "4.5.11" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/vitejs/vite/security/advisories/GHSA-4r4m-qw57-chr8" + }, + { + "type": "WEB", + "url": "https://github.com/vitejs/vite/commit/59673137c45ac2bcfad1170d954347c1a17ab949" + }, + { + "type": "PACKAGE", + "url": "https://github.com/vitejs/vite" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-200", + "CWE-284" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2025-03-31T17:31:54Z", + "nvd_published_at": null + } +} \ No newline at end of file