CVE-2022-39215
Rust vulnerability analysis and mitigation

Overview

CVE-2022-39215 affects Tauri, a framework for building desktop applications. The vulnerability was discovered in versions prior to 1.0.6 and was disclosed on September 15, 2022. The issue stems from missing canonicalization when the readDir function is called recursively, potentially allowing directory listings outside of the defined filesystem scope through crafted symbolic links or junction folders (GitHub Advisory).

Technical details

The vulnerability is classified as CWE-548 and received a Low severity rating. The issue occurs when the readDir function is called recursively without proper canonicalization of paths, specifically when handling symbolic links or junction folders within an allowed path of the filesystem scope. The vulnerability was patched in versions 1.0.6 and 1.1.0 (GitHub Advisory).

Impact

The vulnerability allows attackers to view directory listings outside of the defined filesystem scope. However, the impact is limited as it does not allow for arbitrary file content access. The exploit requires a crafted symbolic link or junction folder to be present inside an allowed path of the filesystem scope (GitHub Advisory).

Mitigation and workarounds

As a temporary workaround, users can disable the readDir endpoint in the allowlist inside the tauri.conf.json file. The permanent fix was implemented in pull request #5123, which added proper checks for symbolic links outside of the defined scope (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22863CRITICAL9.2
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-23519HIGH8.9
  • RustRust
  • cmov
NoYesJan 15, 2026
RUSTSEC-2026-0003HIGH8.9
  • RustRust
  • cmov
NoYesJan 14, 2026
CVE-2026-22864HIGH8.1
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-22782LOW2.9
  • RustRust
  • rustfs
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management