Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-46115

HIGH 8.4EPSS 12%

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

Also known as GHSA-2rcp-jvr4-r259

Mitigation

  • Upgrade tauri-cli to one of 2.0.0-alpha.16, 1.5.6 (or later in the same release line).
  • Upgrade @tauri-apps/cli to one of 2.0.0-alpha.16, 1.5.6 (or later in the same release line).

Who should check

  • Projects that depend on crates.io package tauri-cli (>= 2.0.0-alpha.0, < 2.0.0-alpha.16)
  • Projects that depend on npm package @tauri-apps/cli (>= 2.0.0-alpha.0, < 2.0.0-alpha.16)
  • Anyone running tauri-apps tauri >= 2.0.0-alpha.0, < 2.0.0-alpha.16; >= 1.0.0, < 1.5.6

Vulnerability facts

Affected
tauri-cli >= 2.0.0-alpha.0, < 2.0.0-alpha.16; @tauri-apps/cli >= 2.0.0-alpha.0, < 2.0.0-alpha.16
Fixed in
2.0.0-alpha.16, 1.5.6
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
8.4 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: None
EPSS
0.27% chance of exploitation in 30 days (percentile 12, 2026-11-26)
CWE
CWE-200, CWE-522
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
crates.io tauri-cli>= 2.0.0-alpha.0, < 2.0.0-alpha.162.0.0-alpha.16, 1.5.6osv
npm @tauri-apps/cli>= 2.0.0-alpha.0, < 2.0.0-alpha.162.0.0-alpha.16, 1.5.6osv
tauri-apps tauri>= 2.0.0-alpha.0, < 2.0.0-alpha.16; >= 1.0.0, < 1.5.6—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2023-46115. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-46115.md
Affected: tauri-cli >= 2.0.0-alpha.0, < 2.0.0-alpha.16; @tauri-apps/cli >= 2.0.0-alpha.0, < 2.0.0-alpha.16
Fixed in: 2.0.0-alpha.16, 1.5.6

Steps:
1. Search this machine and project for tauri-cli (crates.io), @tauri-apps/cli (npm), tauri-apps tauri: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2023-46115 being exploited?

There is no confirmed exploitation: CVE-2023-46115 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2023-46115?

High: CVSS 8.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2023-46115?

tauri-cli >= 2.0.0-alpha.0, < 2.0.0-alpha.16; @tauri-apps/cli >= 2.0.0-alpha.0, < 2.0.0-alpha.16.

Is there a fix for CVE-2023-46115?

Yes. Fixed in 2.0.0-alpha.16, 1.5.6. Upgrade tauri-cli to one of 2.0.0-alpha.16, 1.5.6 (or later in the same release line). Upgrade @tauri-apps/cli to one of 2.0.0-alpha.16, 1.5.6 (or later in the same release line).

How do I check if I'm affected by CVE-2023-46115?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors