cve.bz

CVE-2023-46115 tauri tauri: Insufficiently Protected Credentials

5.5 mediumEPSS 0.2%Fix available

Medium (5.5) in tauri tauri. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in tauri-cli 1.5.6, 2.0.0-alpha.16.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 10th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-09-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-522 Insufficiently Protected Credentials
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control, A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-46115 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-46115?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-46115?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-46115 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
tauri:tauribefore 2.0.0
tauri:tauri2.0.0:alpha0
tauri:tauri2.0.0:alpha10
tauri:tauri2.0.0:alpha11
tauri:tauri2.0.0:alpha12
tauri:tauri2.0.0:alpha13
tauri:tauri2.0.0:alpha14
tauri:tauri2.0.0:alpha15
tauri:tauri2.0.0:alpha2
tauri:tauri2.0.0:alpha3
tauri:tauri2.0.0:alpha4
tauri:tauri2.0.0:alpha5
tauri:tauri2.0.0:alpha6
tauri:tauri2.0.0:alpha7
tauri:tauri2.0.0:alpha8
tauri:tauri2.0.0:alpha9

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2rcp-jvr4-r259crates.iotauri-cli>=2.0.0-alpha.0 <2.0.0-alpha.162.0.0-alpha.16
GHSA-2rcp-jvr4-r259npm@tauri-apps/cli>=2.0.0-alpha.0 <2.0.0-alpha.162.0.0-alpha.16
GHSA-2rcp-jvr4-r259npm@tauri-apps/cli>=1.0.0 <1.5.61.5.6
GHSA-2rcp-jvr4-r259crates.iotauri-cli>=1.0.0 <1.5.61.5.6

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-522 (13), CWE-200 (59).

References

Check your stackJSON