Improper Access Control Affecting tauri package, versions <1.6.7>=2.0.0-beta.0 <2.0.0-beta.20


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (11th 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 Learn

Learn about Improper Access Control vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-TAURI-7026338
  • published23 May 2024
  • disclosed23 May 2024
  • creditbegleynk

Introduced: 23 May 2024

CVE-2024-35222  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade tauri to version 1.6.7, 2.0.0-beta.20 or higher.

Overview

Affected versions of this package are vulnerable to Improper Access Control in the dangerousRemoteDomainIpcAccess and capabilities configurations. An attacker can invoke valid commands with potentially unwanted consequences by controlling the content of an iframe running inside a Tauri app.

Workaround

These workarounds should only be considered if you cannot upgrade to the patched Tauri version in time.

As a workaround for v1 Tauri applications, we recommend using a dedicated window for untrusted origins instead of iFrames, or disabling script execution within the iFrame.

For v2 Tauri applications targeting Linux, it is possible to use either a dedicated window or multiple WebViews in the main window to simulate iFrame behavior. On other platforms, it is only possible to use dedicated windows or disable script execution inside the iFrame, as described for v1.

CVSS Scores

version 3.1