5.5

CVE-2023-46115

Updater Private Keys Possibly Leaked via Vite Environment Variables in tauri-cli

Tauri is a framework for building binaries for all major desktop platforms. This advisory is not describing a vulnerability in the Tauri code base itself but a commonly used misconfiguration which could lead to leaking of the private key and updater key password into bundled Tauri applications using the Vite frontend in a specific configuration. The Tauri documentation used an insecure example configuration in the `Vite guide` to showcase how to use Tauri together with Vite.  Copying the following snippet `envPrefix: ['VITE_', 'TAURI_'],` from this guide into the `vite.config.ts` of a Tauri project leads to bundling the `TAURI_PRIVATE_KEY` and `TAURI_KEY_PASSWORD` into the Vite frontend code and therefore leaking this value to the released Tauri application. Using the `envPrefix: ['VITE_'],` or any other framework than Vite means you are not impacted by this advisory. Users are advised to rotate their updater private key if they are affected by this (requires Tauri CLI >=1.5.5). After updating the envPrefix configuration, generate a new private key with `tauri signer generate`, saving the new private key and updating the updater's `pubkey` value on `tauri.conf.json` with the new public key. To update your existing application, the next application build must be signed with the older private key in order to be accepted by the existing application.
Daten sind bereitgestellt durch National Vulnerability Database (NVD)
Tauri ≫ Tauri Version < 2.0.0
Tauri ≫ Tauri Version 2.0.0 Update alpha0
Tauri ≫ Tauri Version 2.0.0 Update alpha10
Tauri ≫ Tauri Version 2.0.0 Update alpha11
Tauri ≫ Tauri Version 2.0.0 Update alpha12
Tauri ≫ Tauri Version 2.0.0 Update alpha13
Tauri ≫ Tauri Version 2.0.0 Update alpha14
Tauri ≫ Tauri Version 2.0.0 Update alpha15
Tauri ≫ Tauri Version 2.0.0 Update alpha2
Tauri ≫ Tauri Version 2.0.0 Update alpha3
Tauri ≫ Tauri Version 2.0.0 Update alpha4
Tauri ≫ Tauri Version 2.0.0 Update alpha5
Tauri ≫ Tauri Version 2.0.0 Update alpha6
Tauri ≫ Tauri Version 2.0.0 Update alpha7
Tauri ≫ Tauri Version 2.0.0 Update alpha8
Tauri ≫ Tauri Version 2.0.0 Update alpha9
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.19% 0.09
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
NIST 5.5 1.8 3.6
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
security-advisories@github.com 8.4 2 5.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor

The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.

CWE-522 Insufficiently Protected Credentials

The product transmits or stores authentication credentials, but it uses an insecure method that is susceptible to unauthorized interception and/or retrieval.

https://github.com/tauri-apps/tauri/security/advisories/GHSA-2rcp-jvr4-r259
Vendor Advisory
https://tauri.app/v1/guides/getting-started/setup/vite/
Product