Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. tauri
  4. ›
  5. CVE-2022-46171

CVE-2022-46171: Tauri Filesystem Scope Glob Pattern is too Permissive

December 22, 2022 (updated December 23, 2022)

The filesystem glob pattern wildcards *, ?, and [...] match file path literals and leading dots by default, which unintentionally exposes sub folder content of allowed paths.

Example: The fs scope $HOME/*.key would also allow $HOME/.ssh/secret.key to be read even though it is in a sub directory of $HOME and is inside a hidden folder.

Scopes without the wildcards are not affected. As ** allows for sub directories the behavior there is also as expected.

References

  • github.com/advisories/GHSA-6mv3-wm7j-h4w5
  • github.com/tauri-apps/tauri
  • github.com/tauri-apps/tauri/commit/14d567f7ecb25a6d1024cf3d796f86aee89d0dd4
  • github.com/tauri-apps/tauri/commit/72389b00d7b495ffd7750eb1e75a3b8537d07cf3
  • github.com/tauri-apps/tauri/commit/f0602e7c294245ab6ef6fbf2a976ef398340ef58
  • github.com/tauri-apps/tauri/security/advisories/GHSA-6mv3-wm7j-h4w5
  • nvd.nist.gov/vuln/detail/CVE-2022-46171

Code Behaviors & Features

Detect and mitigate CVE-2022-46171 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 1.0.0 before 1.0.8, all versions starting from 1.1.0 before 1.1.3, all versions starting from 1.2.0 before 1.2.3, all versions starting from 2.0.0-alpha.0 before 2.0.0-alpha.2

Fixed versions

  • 1.0.8
  • 1.1.3
  • 1.2.3
  • 2.0.0-alpha.2

Solution

Upgrade to versions 1.0.8, 1.1.3, 1.2.3, 2.0.0-alpha.2 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

cargo/tauri/CVE-2022-46171.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:46 +0000.