CVE-2022-41874: Tauri Filesystem Scope can be Partially Bypassed

Published Nov 10, 2022
·
Updated

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

2 affected components
Tauri Tauri>=1.0.0<1.0.7
Tauri Tauri>=1.1.0<1.1.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.0.7
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.1.2
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.2.0
  4. 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

Nov 10, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is CVE-2022-41874?

CVE-2022-41874 is a vulnerability that affects Tauri versions prior to 1.0.7 and 1.1.2.

2

What is the severity of CVE-2022-41874?

The severity of CVE-2022-41874 is medium with a CVSS score of 4.7.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203