CVE-2022-39215

The readDir Endpoint Scope can be Bypassed With Symbolic Links in Tauri

MEDIUM
5.8
CVSS Score
Published: September 15, 2022 at 09:35 PM UTC
Updated: June 17, 2026 at 04:57 AM UTC
2 products affected across 2 vendorsTauriTauri

Using tauri by tauri-apps?

Get instant alerts when new vulnerabilities affect tauri - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.8
Exploit prediction
EPSS 1%
SSVC
PoC

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.0.6
Affected range stops below 1.0.6, so it looks safe — our inference, not a vendor statement
v < 1.0.6
Affected range stops below 1.0.6, so it looks safe — our inference, not a vendor statement

References (4)

x_refsource_MISCExploitIssue TrackingThird Party Advisory
https://github.com/tauri-apps/tauri/issues/4882
x_refsource_MISCPatchThird Party Advisory
https://github.com/tauri-apps/tauri/pull/5123
x_refsource_CONFIRMMitigationPatchThird Party Advisory
https://github.com/tauri-apps/tauri/security/advisories/GHSA-28m8-9j7v-x499

SSVC — Action Prioritization

SSVCPoCAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-22CWE-59

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card