{"id":"CVE-2022-39215","published":"2022-09-15T21:35:11Z","modified":"2025-04-22T17:21:33Z","title":"The readDir Endpoint Scope can be Bypassed With Symbolic Links in Tauri","vendor":"tauri-apps","product":"tauri","tier":"tail","description":{"text":"Tauri is a framework for building binaries for all major desktop platforms. Due to missing canonicalization when `readDir` is called recursively, it was possible to display directory listings outside of the defined `fs` scope. This required a crafted symbolic link or junction folder inside an allowed path of the `fs` scope. No arbitrary file content could be leaked. The issue has been resolved in version 1.0.6 and the implementation now properly checks if the requested (sub) directory is a symbolic link outside of the defined `scope`. Users are advised to upgrade. Users unable to upgrade should disable the `readDir` endpoint in the `allowlist` inside the `tauri.conf.json`.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01044,"percentile":0.64939,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/tauri-apps/tauri/security/advisories/GHSA-28m8-9j7v-x499","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tauri-apps/tauri/issues/4882","tags":["x_refsource_MISC"]},{"url":"https://github.com/tauri-apps/tauri/pull/5123","tags":["x_refsource_MISC"]},{"url":"https://github.com/tauri-apps/tauri/pull/5123/commits/1f9b9e8d26a2c915390323e161020bcb36d44678","tags":["x_refsource_MISC"]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":12.99},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"tauri-apps","affectedVersions":[{"vendor":"tauri-apps","product":"tauri","versions":["< 1.0.6"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-22T15:39:32.741893Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"tauri","vulnerableRanges":["<1.0.6",">=0.0.0-0, <1.0.6"],"patched":["1.0.6"],"from":["GHSA-28m8-9j7v-x499","RUSTSEC-2022-0088"],"provenance":"source"}],"summary":{"text":"Tauri, the framework for building cross-platform desktop applications, has a path traversal flaw in its readDir endpoint: because paths are not canonicalized during recursive calls, directory listings can be displayed outside the configured fs scope. An attacker who can place a crafted symbolic link or junction inside an allowed path of that scope can exploit this, without authentication or user interaction, to view directory listings (though not arbitrary file contents) beyond the permitted area.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:47Z"},"euvd":{"id":"EUVD-2022-6655","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-39215","published":"2022-09-15","fixed":"1.0.6","kev":false},{"cve":"CVE-2023-31134","published":"2023-05-09","fixed":"1.2.5","kev":false},{"cve":"CVE-2023-34460","published":"2023-06-23","fixed":"1.4.1","kev":false},{"cve":"CVE-2022-46171","published":"2022-12-23","fixed":"2.0.0-alpha.2","kev":false,"link":{"from":"CVE-2022-39215","to":"CVE-2022-46171","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:tauri","fromFixed":"1.0.6","toFixed":"1.0.8","daysApart":99}]}}],"package":"crates.io:tauri"}}