CVE-2022-41874: Tauri Filesystem Scope can be Partially Bypassed
Tauri is a framework for building binaries for all major desktop platforms. In versions prior to 1.0.7 and 1.1.2, Tauri is vulnerable to an Incorrectly-Resolved Name. Due to incorrect escaping of special characters in paths selected via the file dialog and drag and drop functionality, it is possible to partially bypass the fs scope definition. It is not possible to traverse into arbitrary paths, as the issue is limited to neighboring files and sub folders of already allowed paths. The impact differs on Windows, MacOS and Linux due to different specifications of valid path characters. This bypass depends on the file picker dialog or dragged files, as user selected paths are automatically added to the allow list at runtime. A successful bypass requires the user to select a pre-existing malicious file or directory during the file picker dialog and an adversary controlled logic to access these files. The issue has been patched in versions 1.0.7, 1.1.2 and 1.2.0. As a workaround, disable the dialog and fileDropEnabled component inside the tauri.conf.json.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.0.7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.1.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.2.0 - Configuration
Disable the file picker dialog and set the Tauri configuration option `fileDropEnabled` in `tauri.conf.json` to `false` as a workaround.
Tauri fileDropEnabled (in tauri.conf.json) = false
Event History
Frequently Asked Questions
What is CVE-2022-41874?
CVE-2022-41874 is a vulnerability that affects Tauri versions prior to 1.0.7 and 1.1.2.
What is the severity of CVE-2022-41874?
The severity of CVE-2022-41874 is medium with a CVSS score of 4.7.
How does CVE-2022-41874 affect Tauri?
CVE-2022-41874 allows for an Incorrectly-Resolved Name vulnerability in Tauri due to incorrect escaping of special characters in file paths selected via the file dialog and drag and drop functionality.
Which versions of Tauri are affected by CVE-2022-41874?
CVE-2022-41874 affects Tauri versions prior to 1.0.7 and 1.1.2.
How can I fix CVE-2022-41874?
To fix CVE-2022-41874, it is recommended to update Tauri to version 1.0.7 or 1.1.2.