CVE-2022-39215 json
The readDir Endpoint Scope can be Bypassed With Symbolic Links in Tauri
published 2022-08-07 4 y ago modified 2026-06-17 4 mo ago also GHSA-28m8-9j7v-x499 , RUSTSEC-2022-0088 , EUVD-2022-6655
- cvss
- 8.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 63%
- public exploits
- 0
- none known
Summary
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`.
Patch / fix
- crates.io tauri 1.0.6
- tauri tauri 1.0.6
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
1.02% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/tauri-apps/tauri/issues/4882 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| NVD | 3.1 | 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N |
| GitHub | 3.1 | 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N |
| OSV | 3.1 | 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | tauri | <1.0.6 >=0.0.0-0, <1.0.6 |
1.0.6 |
Affected products
- tauri-apps tauri
Classification
References
-
github.com
/tauri-apps/tauri/pull/5123
web, patch, third-party-advisory
-
github.com
/tauri-apps/tauri/pull/5123/commits/1f9b9e8d26a2c915390323e161020bcb36d44678
web, patch, third-party-advisory
-
github.com
/tauri-apps/tauri/security/advisories/GHSA-28m8-9j7v-x499
web, mitigation, patch, third-party-advisory
-
github.com
/tauri-apps/tauri/commit/bb178829086e80916f9be190f02d83bc25802799
web
-
github.com
/tauri-apps/tauri/issues/4882
web, exploit, issue-tracking, third-party-advisory, report
-
nvd.nist.gov
/vuln/detail/CVE-2022-39215
advisory
-
github.com
/tauri-apps/tauri
package
-
github.com
/tauri-apps/tauri/releases/tag/tauri-v1.0.6
web
-
rustsec.org
/advisories/RUSTSEC-2022-0088.html
web, advisory
-
crates.io
/crates/tauri
package
Sources
- CVE List CVE-2022-39215
- GitHub Advisory GHSA-28m8-9j7v-x499
- NVD CVE-2022-39215
- OSV RUSTSEC-2022-0088
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.