Access Control Bypass Affecting tauri package, versions >=1.0.0 <1.0.7>=1.1.0 <1.1.2


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (26th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-TAURI-3110425
  • published9 Nov 2022
  • disclosed8 Nov 2022
  • creditMessyComposer

Introduced: 8 Nov 2022

CVE-2022-41874  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade tauri to version 1.0.7, 1.1.2 or higher.

Overview

Affected versions of this package are vulnerable to Access Control Bypass due to incorrect escaping of special characters in paths selected via the file dialog and drag and drop functionality, which allows partially bypassing the fs scope definition.

Note:

On Linux or MacOS based systems it was possible to use the *, ** and [a-Z] patterns inside a path, which allows reading the content of sub directories and single character files in a folder, where only specific files or the directory itself were allowed.

On Windows [a-Z] was the possible bypass pattern, as * is not treated as a valid path component. This implies that only single character files inside an already allowed directory were unintentionally accessible.

Workaround

Users who are unable to upgrade to the fixed version can disable the dialog and fileDropEnabled component inside the tauri.conf.json.

CVSS Scores

version 3.1