CVE-2025-31477 Details
Description
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.
A vulnerability in the Tauri shell plugin, prior to version 2.2.1, allows for remote code execution by improperly validating protocols in the 'open' endpoint. This endpoint, intended to interface with the system's default program handler, could be exploited to execute code by passing untrusted input that included dangerous protocols like 'file://', 'smb://', or 'nfs://'. The vulnerability requires either direct exposure of the endpoint to users or code execution within the frontend of a Tauri application. Users not affected by this vulnerability have either configured a validation regex or disabled the 'open' endpoint in the plugin settings.
Users can update to version 2.2.1 or later, which includes the necessary patch. If an immediate update is not possible, the 'open' endpoint can be disabled in the plugin configuration or replaced with the 'opener' plugin, which is recommended.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/tauri-apps/plugins-workspace/security/advisories/GHSA-c9pr-q8gx-3mgp | CISA-ADP | ExploitVendor Advisory |
| https://github.com/tauri-apps/plugins-workspace/commit/9cf0390a52497e273db1a1b613a0e26827aa327c | [email protected] | Patch |
| https://github.com/tauri-apps/plugins-workspace/security/advisories/GHSA-c9pr-q8gx-3mgp | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| tauri plugin-shell | < 2.2.1 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2025 | Initial Analysis | [email protected] |
| Apr 3, 2025 | CVE Modified | CISA-ADP |
| Apr 2, 2025 | New CVE Received | [email protected] |