# CVE-2022-39215: The readDir Endpoint Scope can be Bypassed With Symbolic Links in Tauri

- Severity: High 8.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.04%, higher than 65% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-08-07T12:00:00.000Z
- Modified: 2026-06-17T04:57:55.933Z
- Also known as: GHSA-28m8-9j7v-x499, RUSTSEC-2022-0088
- Weaknesses: CWE-22, CWE-59
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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 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`.

(As written by CVE List.)

## Affected

- tauri-apps tauri: < 1.0.6
- tauri (crates.io): before 1.0.6; from 0.0.0-0 before 1.0.6
- tauri tauri: before 1.0.6

## Every score

- GitHub_M: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N`
- RustSec Advisory Database: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N`

## References

- <https://github.com/tauri-apps/tauri/issues/4882> (exploit, issue-tracking, report, third-party-advisory, web)
- <https://github.com/tauri-apps/tauri/security/advisories/GHSA-28m8-9j7v-x499> (mitigation, patch, third-party-advisory, web)
- <https://github.com/tauri-apps/tauri/pull/5123> (patch, third-party-advisory, web)
- <https://github.com/tauri-apps/tauri/pull/5123/commits/1f9b9e8d26a2c915390323e161020bcb36d44678> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-39215> (advisory)
- <https://github.com/tauri-apps/tauri/commit/bb178829086e80916f9be190f02d83bc25802799> (web)
- <https://github.com/tauri-apps/tauri> (package)
- <https://github.com/tauri-apps/tauri/releases/tag/tauri-v1.0.6> (web)
- <https://rustsec.org/advisories/RUSTSEC-2022-0088.html> (advisory, web)
- <https://crates.io/crates/tauri> (package)

## Sources

- CVE List: [CVE-2022-39215](https://www.cve.org/CVERecord?id=CVE-2022-39215), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-28m8-9j7v-x499](https://github.com/advisories/GHSA-28m8-9j7v-x499), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2022-0088](https://rustsec.org/advisories/RUSTSEC-2022-0088.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2022-39215](https://nvd.nist.gov/vuln/detail/CVE-2022-39215), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-39215 · Whole record: https://cve.day/CVE-2022-39215.json · Rebuilt by cve.day 2026-11-25T22:58:14.966Z
