CVE-2022-46171
Rust vulnerability analysis and mitigation

Overview

CVE-2022-46171 affects Tauri, a framework for building binaries for all major desktop platforms. The vulnerability was discovered and disclosed in December 2022, where filesystem glob pattern wildcards (*, ?, and [...]) were found to match file path literals and leading dots by default, which unintentionally exposes sub folder content of allowed paths. The vulnerability affects Tauri versions 1.0.0-1.0.7, 1.1.0-1.1.2, 1.2.0-1.2.2, and 2.0.0-alpha.0 to 2.0.0-alpha.1 (GitHub Advisory).

Technical details

The vulnerability stems from the default behavior of glob pattern matching in Tauri's filesystem scope implementation. The glob pattern wildcards would match file path literals and leading dots, allowing access to subdirectories and hidden files that were not intended to be accessible. For example, a scope pattern like $HOME/*.key would unintentionally allow access to files like $HOME/.ssh/secret.key, exposing content in both subdirectories and hidden folders. The CVSS v3.1 base score is 6.8 (Medium), with a vector string of CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N (GitHub Advisory).

Impact

The vulnerability could lead to unauthorized access to sensitive files and directories that were intended to be restricted. An attacker could potentially read files from subdirectories and hidden folders that should have been outside the scope of the allowed paths, potentially exposing sensitive information (GitHub Advisory).

Mitigation and workarounds

The issue has been patched in versions 1.0.8, 1.1.3, 1.2.3, and 2.0.0-alpha.2 and later. The fix implements stricter glob matching options by setting require_literal_separator: true and require_literal_leading_dot: true. No workarounds were available at the time of publication, making upgrading to a patched version the only solution (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66627HIGH8.4
  • RustRust
  • wasmi
NoYesDec 09, 2025
GHSA-xrv8-2pf5-f3q7MEDIUM6
  • RustRust
  • nitro-tpm-pcr-compute
NoYesDec 05, 2025
CVE-2025-67487MEDIUM5.5
  • RustRust
  • static-web-server
NoYesDec 09, 2025
CVE-2025-66622LOW1.3
  • RustRust
  • matrix-sdk-base
NoYesDec 09, 2025
RUSTSEC-2025-0135N/AN/A
  • RustRust
  • matrix-sdk-base
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management