{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-39215","id":"CVE-2022-39215","title":"The readDir Endpoint Scope can be Bypassed With Symbolic Links in Tauri","description":"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 ","descriptionLong":"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`.","published":"2022-09-15T21:35:11.000Z","updated":"2026-10-28T02:30:48.463696157Z","reserved":"2022-09-02T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","rating":"high","source":"github.com"},{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","rating":"high","source":"OSV"},{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","rating":"medium","source":"OSV"}],"rating":"high","products":["tauri-apps tauri"],"affectedProducts":[{"vendor":"tauri-apps","product":"tauri","defaultStatus":null,"versions":[{"status":"affected","version":"< 1.0.6"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"tauri","purl":"pkg:cargo/tauri","ranges":["<1.0.6",">=0.0.0-0 <1.0.6"],"fixed":["1.0.6"],"advisory":"GHSA-28m8-9j7v-x499"}],"cwes":["CWE-22","CWE-59"],"aliases":["GHSA-28m8-9j7v-x499","RUSTSEC-2022-0088"],"references":[{"url":"https://github.com/tauri-apps/tauri/security/advisories/GHSA-28m8-9j7v-x499","tags":["x_refsource_CONFIRM","x_transferred","Mitigation","Patch","Third Party Advisory","advisory","web"]},{"url":"https://github.com/tauri-apps/tauri/issues/4882","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/tauri-apps/tauri/pull/5123","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/tauri-apps/tauri/pull/5123/commits/1f9b9e8d26a2c915390323e161020bcb36d44678","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39215.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39215","tags":["advisory"]},{"url":"https://github.com/tauri-apps/tauri/commit/bb178829086e80916f9be190f02d83bc25802799","tags":["web"]},{"url":"https://github.com/tauri-apps/tauri","tags":["package"]},{"url":"https://github.com/tauri-apps/tauri/releases/tag/tauri-v1.0.6","tags":["web"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0088.html","tags":["web","advisory"]},{"url":"https://crates.io/crates/tauri","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.01044,"epssPercentile":0.6483,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-39215","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39215","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-39215","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-28m8-9j7v-x499","ok":true,"note":"GHSA-28m8-9j7v-x499"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-39215","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}