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.

Published: 2023-10-20 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2023-46115 is rated Low Risk (36.9/100): CVSS High severity, with low exploitation likelihood (EPSS 0.19%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2023-46115

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.06% 0.19% +0.13%
2 2025-11-21 0.05% 0.06% +0.01%
3 2025-11-18 0.05%

Full EPSS history (7 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2023-46115

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.4 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:N)
Service keeps running; no real outage angle.
2.0 5.8 [email protected]
5.5 3.1 MEDIUM
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
1.8 3.6 [email protected]

Weakness enumeration for CVE-2023-46115

GitHub Security Advisory for CVE-2023-46115

GHSA-2rcp-jvr4-r259 · Severity: high · Ecosystem: rust — Tauri's Updater Private Keys Possibly Leaked via Vite Environment Variables

Affected software / configurations for CVE-2023-46115

Vendor Product Version Raw CPE
tauri tauri < 2.0.0 cpe:2.3:a:tauri:tauri:*:*:*:*:*:*:*:*
tauri tauri 2.0.0 cpe:2.3:a:tauri:tauri:2.0.0:alpha0:*:*:*:*:*:*
tauri tauri 2.0.0 cpe:2.3:a:tauri:tauri:2.0.0:alpha10:*:*:*:*:*:*
tauri tauri 2.0.0 cpe:2.3:a:tauri:tauri:2.0.0:alpha11:*:*:*:*:*:*
tauri tauri 2.0.0 cpe:2.3:a:tauri:tauri:2.0.0:alpha12:*:*:*:*:*:*
tauri tauri 2.0.0 cpe:2.3:a:tauri:tauri:2.0.0:alpha13:*:*:*:*:*:*
tauri tauri 2.0.0 cpe:2.3:a:tauri:tauri:2.0.0:alpha14:*:*:*:*:*:*
tauri tauri 2.0.0 cpe:2.3:a:tauri:tauri:2.0.0:alpha15:*:*:*:*:*:*
tauri tauri 2.0.0 cpe:2.3:a:tauri:tauri:2.0.0:alpha2:*:*:*:*:*:*
tauri tauri 2.0.0 cpe:2.3:a:tauri:tauri:2.0.0:alpha3:*:*:*:*:*:*
tauri tauri 2.0.0 cpe:2.3:a:tauri:tauri:2.0.0:alpha4:*:*:*:*:*:*
tauri tauri 2.0.0 cpe:2.3:a:tauri:tauri:2.0.0:alpha5:*:*:*:*:*:*
tauri tauri 2.0.0 cpe:2.3:a:tauri:tauri:2.0.0:alpha6:*:*:*:*:*:*
tauri tauri 2.0.0 cpe:2.3:a:tauri:tauri:2.0.0:alpha7:*:*:*:*:*:*
tauri tauri 2.0.0 cpe:2.3:a:tauri:tauri:2.0.0:alpha8:*:*:*:*:*:*
tauri tauri 2.0.0 cpe:2.3:a:tauri:tauri:2.0.0:alpha9:*:*:*:*:*:*

References for CVE-2023-46115

cvelogic Threat Intelligence