CVE-2022-46171
Tauri vulnerable to path traversal
Tauri is a framework for building binaries for all major desktop platforms. The filesystem glob pattern wildcards *, ?, and [...] match file path literals and leading dots by default, which unintentionally exposes sub folder content of allowed paths. Scopes without the wildcards are not affected. As ** allows for sub directories the behavior there is also as expected. The issue has been patched in the latest release and was backported into the currently supported 1.x branches. There are no known workarounds at the time of publication.
Attack profile
How easy it is to exploit
- Attack vector
- Adjacent network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
6.8
Tauri vulnerable to path traversal
Tauri is a framework for building binaries for all major desktop platforms. The filesystem glob pattern wildcards *, ?, and [...] match file path literals and leading dots by default, which unintentionally exposes sub folder content of allowed paths. Scopes without the wildcards are not affected. As ** allows for sub directories the behavior there is also as expected. The issue has been patched in the latest release and was backported into the currently supported 1.x branches. There are no known workarounds at the time of publication.
- Record
CVE-2022-46171- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
EUVDEUVD-2022-7536
6.8
Tauri is a framework for building binaries for all major desktop platforms. The filesystem glob pattern wildcards *, ?, and [...] match file path literals and leading dots by default, which unintentionally exposes sub folder content of allowed paths. Scopes without the wildcards are not affected. As ** allows for sub directories the behavior there is also as expected. The issue has been patched in the latest release and was backported into the currently supported 1.x branches. There are no known workarounds at the time of publication.
- Record
EUVD-2022-7536- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-6mv3-wm7j-h4w5
6.8
Tauri Filesystem Scope Glob Pattern is too Permissive
Impact
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.
Patches
The issue has been patched in the latest release and was backported into the currently supported 1.x branches.
Workarounds
No workaround is known at the time of publication.
References
The original report contained information that the dialog.open component automatically allows one sub directory to be read, regardless of the recursive option.
Imagine a file system looking like
o ../
o documents/
- file.txt
- deeper/
o deep_file.txt
Reproduction steps:
- Trying to load “file.txt” or “deep_file.txt” doesn’t work. Expected
- Select “documents” as folder to open(ie. with window.TAURI.dialog.open)
- Trying to load “file.txt” works. Expected
- Trying to load “deep_file.txt” also works, which isn’t expected
The recursive flag is used in https://github.com/tauri-apps/tauri/blob/cd8c074ae6592303d3f6844a4fb6d262eae913b2/core/tauri/src/scope/fs.rs#L154 to scope the filesystem access to either files in the folder or to also include sub directories.
The original issue was replicated and further investigated.
The root cause was triaged to the glob crate facilitating defaults, which allow the * and [...] to also match path literals.
MatchOptions {
case_sensitive: true,
require_literal_separator: false,
require_literal_leading_dot: false
}
This implicated that not only the dialog.open component was affected but rather all fs scopes containing the * or [...] glob.
During this investigation it became obvious that the current glob matches would also match hidden folder (e.g: .ssh) content by default, without explicitly allowing hidden folders to be matched. This is not commonly expected behavior in comparison to for example bash.
The new default Match options are:
MatchOptions {
case_sensitive: true,
require_literal_separator: true,
require_literal_leading_dot: true
}
Another note security relevant for developers building applications interacting with case sensitive filesystems is, that the
case_sensitiveoption only affects ASCII file paths and is not valid in Unicode based paths. This is considered a known risk until theglobcrate supports non-ASCII file paths for this type of case sensitive matching.
For more Information
If you have any questions or comments about this advisory:
Open an issue in tauri Email us at [email protected]
- Record
GHSA-6mv3-wm7j-h4w5- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
NVD
6.8
Tauri is a framework for building binaries for all major desktop platforms. The filesystem glob pattern wildcards *, ?, and [...] match file path literals and leading dots by default, which unintentionally exposes sub folder content of allowed paths. Scopes without the wildcards are not affected. As ** allows for sub directories the behavior there is also as expected. The issue has been patched in the latest release and was backported into the currently supported 1.x branches. There are no known workarounds at the time of publication.
- Record
CVE-2022-46171- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N - CVSS 3.1
- 7.7 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
OSV
6.8
Tauri vulnerable to path traversal
Tauri is a framework for building binaries for all major desktop platforms. The filesystem glob pattern wildcards *, ?, and [...] match file path literals and leading dots by default, which unintentionally exposes sub folder content of allowed paths. Scopes without the wildcards are not affected. As ** allows for sub directories the behavior there is also as expected. The issue has been patched in the latest release and was backported into the currently supported 1.x branches. There are no known workarounds at the time of publication.
- Record
CVE-2022-46171- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVGHSA-6mv3-wm7j-h4w5
6.8
Tauri Filesystem Scope Glob Pattern is too Permissive
Impact
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.
Patches
The issue has been patched in the latest release and was backported into the currently supported 1.x branches.
Workarounds
No workaround is known at the time of publication.
References
The original report contained information that the dialog.open component automatically allows one sub directory to be read, regardless of the recursive option.
Imagine a file system looking like
o ../
o documents/
- file.txt
- deeper/
o deep_file.txt
Reproduction steps:
- Trying to load “file.txt” or “deep_file.txt” doesn’t work. Expected
- Select “documents” as folder to open(ie. with window.TAURI.dialog.open)
- Trying to load “file.txt” works. Expected
- Trying to load “deep_file.txt” also works, which isn’t expected
The recursive flag is used in https://github.com/tauri-apps/tauri/blob/cd8c074ae6592303d3f6844a4fb6d262eae913b2/core/tauri/src/scope/fs.rs#L154 to scope the filesystem access to either files in the folder or to also include sub directories.
The original issue was replicated and further investigated.
The root cause was triaged to the glob crate facilitating defaults, which allow the * and [...] to also match path literals.
MatchOptions {
case_sensitive: true,
require_literal_separator: false,
require_literal_leading_dot: false
}
This implicated that not only the dialog.open component was affected but rather all fs scopes containing the * or [...] glob.
During this investigation it became obvious that the current glob matches would also match hidden folder (e.g: .ssh) content by default, without explicitly allowing hidden folders to be matched. This is not commonly expected behavior in comparison to for example bash.
The new default Match options are:
MatchOptions {
case_sensitive: true,
require_literal_separator: true,
require_literal_leading_dot: true
}
Another note security relevant for developers building applications interacting with case sensitive filesystems is, that the
case_sensitiveoption only affects ASCII file paths and is not valid in Unicode based paths. This is considered a known risk until theglobcrate supports non-ASCII file paths for this type of case sensitive matching.
For more Information
If you have any questions or comments about this advisory:
Open an issue in tauri Email us at [email protected]
- Record
GHSA-6mv3-wm7j-h4w5- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
Affected products
Affected packages
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-46171 is a medium vulnerability (CVSS 6.8) in Tauri, published December 22, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.07%, the 65th percentile. Fixed in tauri 1.0.8.
References
github.com/tauri-apps/tauri/security/advisories/GHSA-6mv3-wm7j-h4w5
github.com/tauri-apps/tauri/commit/72389b00d7b495ffd7750eb1e75a3b8537d07cf3
github.com/tauri-apps/tauri/commit/f0602e7c294245ab6ef6fbf2a976ef398340ef58
github.com/tauri-apps/tauri/commit/14d567f7ecb25a6d1024cf3d796f86aee89d0dd4
nvd.nist.gov/vuln/detail/CVE-2022-46171
github.com/advisories/GHSA-6mv3-wm7j-h4w5
github.com/CVEProject/cvelistV5/tree/main/cves/2022/46xxx/CVE-2022-46171.json
github.com/tauri-apps/tauri