CVE-2025-31477
April 02, 2025
The Tauri shell plugin allows access to the system shell. Prior to 2.2.1, the Tauri shell plugin exposes functionality to execute code and open programs on the system. The open endpoint of this plugin is designed to allow open functionality with the system opener (e.g. xdg-open on Linux). This was meant to be restricted to a reasonable number of protocols like https or mailto by default. This default restriction was not functional due to improper validation of the allowed protocols, allowing for potentially dangerous protocols like file://, smb://, or nfs:// and others to be opened by the system registered protocol handler. By passing untrusted user input to the open endpoint these potentially dangerous protocols can be abused to gain remote code execution on the system. This either requires direct exposure of the endpoint to application users or code execution in the frontend of a Tauri application. This vulnerability is fixed in 2.2.1.
Affected Packages
https://github.com/tauri-apps/plugins-workspace.git (GITHUB):
Affected version(s) >=shell-v2.0.0-alpha.0 <shell-v2.2.1Fix Suggestion:
Update to version shell-v2.2.1https://github.com/tauri-apps/plugins-workspace.git (GITHUB):
Affected version(s) >=shell-v2.0.0-alpha.0 <shell-v2.2.1Fix Suggestion:
Update to version shell-v2.2.1@tauri-apps/plugin-shell (NPM):
Affected version(s) Fix Suggestion:
Update to version 2.2.1@tauri-apps/plugin-shell (NPM):
Affected version(s) Fix Suggestion:
Update to version 2.2.1tauri-plugin-shell (RUST):
Affected version(s) >=2.0.0-alpha.0 <2.2.1Fix Suggestion:
Update to version 2.2.1tauri-plugin-shell (RUST):
Affected version(s) >=2.0.0-alpha.0 <2.2.1Fix Suggestion:
Update to version 2.2.1Related ResourcesĀ (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
9.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Input Validation
EPSS
Base Score:
3.97