{"id":"CVE-2022-41874","aliases":["EUVD-2022-7410","GHSA-q9wv-22m9-vhqh","RUSTSEC-2022-0091"],"status":"published","title":"Tauri Filesystem Scope can be Partially Bypassed","description":"Tauri is a framework for building binaries for all major desktop platforms. In versions prior to 1.0.7 and 1.1.2, Tauri is vulnerable to an Incorrectly-Resolved Name. Due to incorrect escaping of special characters in paths selected via the file dialog and drag and drop functionality, it is possible to partially bypass the `fs` scope definition. It is not possible to traverse into arbitrary paths, as the issue is limited to neighboring files and sub folders of already allowed paths. The impact differs on Windows, MacOS and Linux due to different specifications of valid path characters. This bypass depends on the file picker dialog or dragged files, as user selected paths are automatically added to the allow list at runtime. A successful bypass requires the user to select a pre-existing malicious file or directory during the file picker dialog and an adversary controlled logic to access these files. The issue has been patched in versions 1.0.7, 1.1.2 and 1.2.0. As a workaround, disable the dialog and fileDropEnabled component inside the tauri.conf.json.","severity":{"version":"3.1","score":2.6,"vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:C/C:L/I:N/A:N","level":"low","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00516,"percentile":0.44205,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-284","CWE-668","CWE-706"],"published":"2022-09-19T12:00:00Z","modified":"2026-10-28T02:30:55Z","fixes":[{"ecosystem":"crates.io","package":"Tauri","fixed_in":["1.0.7","1.1.2"],"sources":["ghsa","osv"]},{"ecosystem":"crates.io","package":"tauri","fixed_in":["1.0.7","1.1.2"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"Tauri","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0"},{"fixed":"1.0.7"}]}]},{"source":"ghsa","ecosystem":"crates.io","package":"Tauri","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.1.0"},{"fixed":"1.1.2"}]}]},{"source":"osv","ecosystem":"crates.io","package":"Tauri","ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0"},{"fixed":"1.0.7"}]}]},{"source":"osv","ecosystem":"crates.io","package":"Tauri","ranges":[{"type":"SEMVER","events":[{"introduced":"1.1.0"},{"fixed":"1.1.2"}]}]},{"source":"osv","ecosystem":"crates.io","package":"tauri","ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0"},{"fixed":"1.0.7"},{"introduced":"1.1.0"},{"fixed":"1.1.2"}]}]}],"products":[{"vendor":"tauri","product":"tauri"},{"vendor":"tauri-apps","product":"tauri"}],"references":[{"url":"https://github.com/tauri-apps/tauri/security/advisories/GHSA-q9wv-22m9-vhqh","tags":["x_transferred","Issue Tracking","Patch","Third Party Advisory","advisory","web"]},{"url":"https://github.com/tauri-apps/tauri/issues/5234","tags":["web","report"]},{"url":"https://github.com/tauri-apps/tauri/pull/5237","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41874","tags":["advisory"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0091.html","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-q9wv-22m9-vhqh"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41874.json","tags":["advisory"]},{"url":"https://github.com/tauri-apps/tauri","tags":["package"]},{"url":"https://crates.io/crates/tauri","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-41874","title":"Tauri Filesystem Scope can be Partially Bypassed","description":"Tauri is a framework for building binaries for all major desktop platforms. In versions prior to 1.0.7 and 1.1.2, Tauri is vulnerable to an Incorrectly-Resolved Name. Due to incorrect escaping of special characters in paths selected via the file dialog and drag and drop functionality, it is possible to partially bypass the `fs` scope definition. It is not possible to traverse into arbitrary paths, as the issue is limited to neighboring files and sub folders of already allowed paths. The impact differs on Windows, MacOS and Linux due to different specifications of valid path characters. This bypass depends on the file picker dialog or dragged files, as user selected paths are automatically added to the allow list at runtime. A successful bypass requires the user to select a pre-existing malicious file or directory during the file picker dialog and an adversary controlled logic to access these files. The issue has been patched in versions 1.0.7, 1.1.2 and 1.2.0. As a workaround, disable the dialog and fileDropEnabled component inside the tauri.conf.json.","status":"published","published":"2022-11-10T00:00:00Z","modified":"2025-04-23T16:38:40.535Z","cvss":[{"version":"3.1","score":2.6,"vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:C/C:L/I:N/A:N","level":"low","assessor":"cna"}],"cwes":["CWE-668","CWE-706"],"updated_at":"2026-11-02T14:34:28.038197Z"}],"euvd":[{"id":"EUVD-2022-7410","description":"Tauri is a framework for building binaries for all major desktop platforms. In versions prior to 1.0.7 and 1.1.2, Tauri is vulnerable to an Incorrectly-Resolved Name. Due to incorrect escaping of special characters in paths selected via the file dialog and drag and drop functionality, it is possible to partially bypass the `fs` scope definition. It is not possible to traverse into arbitrary paths, as the issue is limited to neighboring files and sub folders of already allowed paths. The impact differs on Windows, MacOS and Linux due to different specifications of valid path characters. This bypass depends on the file picker dialog or dragged files, as user selected paths are automatically added to the allow list at runtime. A successful bypass requires the user to select a pre-existing malicious file or directory during the file picker dialog and an adversary controlled logic to access these files. The issue has been patched in versions 1.0.7, 1.1.2 and 1.2.0. As a workaround, disable the dialog and fileDropEnabled component inside the tauri.conf.json.","status":"published","published":"2022-11-10T00:00:00Z","modified":"2025-04-23T16:38:40Z","cvss":[{"version":"3.1","score":2.6,"vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:C/C:L/I:N/A:N","level":"low"}],"updated_at":"2026-11-02T20:52:12.313971Z"}],"ghsa":[{"id":"GHSA-q9wv-22m9-vhqh","title":"Tauri Filesystem Scope can be Partially Bypassed","description":"### Impact\n\nDue to incorrect escaping of special characters in paths selected via the file dialog and drag and drop functionality, it was possible to partially bypass the `fs` scope definition. It was not possible to traverse into arbitrary paths, as the issue was limited to neighboring files and sub folders of already allowed paths.\n\nThe impact differs on Windows, MacOS and Linux due to different specifications of valid path characters.\n\nOn Linux or MacOS based systems it was possible to use the `*`, `**` and `[a-Z]` patterns inside a path, which allowed to read the content of sub directories and single character files in a folder, where only specific files or the directory itself were allowed.\n\nOn Windows `[a-Z]` was the possible bypass pattern, as `*` is not treated as a valid path component. This implies that only single character files inside an already allowed directory were unintentionally accessible.\n\nThis bypass depends on the file picker dialog or dragged files, as user selected paths are automatically added to the allow list at runtime.\n\nA successful bypass requires the user to select a pre-existing malicious file or directory during the file picker dialog and an adversary controlled logic to access these files. This means the issue by itself can not be abused and requires further intentional or unintentional privileges.\n\n### Workaround\n\nDisable the `dialog` and `fileDropEnabled` component inside the `tauri.conf.json`.\n\n### Patches\n\nThe issue has been resolved in #5237 and the implementation now properly escapes the special characters. The patch has been included in releases: `1.0.7`, `1.1.2` and `1.2.0`\n\n### For more information\n\nThis issue was initially reported by MessyComposer in #5234.\n\nIf you have any questions or comments about this advisory:\n\nOpen an issue in tauri\nEmail us at security@tauri.app","status":"published","published":"2022-11-08T17:33:26Z","modified":"2023-02-28T16:52:04Z","cvss":[{"version":"3.1","score":2.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N","level":"low"}],"cwes":["CWE-284"],"updated_at":"2026-11-02T14:36:46.526285Z"}],"nvd":[{"id":"CVE-2022-41874","description":"Tauri is a framework for building binaries for all major desktop platforms. In versions prior to 1.0.7 and 1.1.2, Tauri is vulnerable to an Incorrectly-Resolved Name. Due to incorrect escaping of special characters in paths selected via the file dialog and drag and drop functionality, it is possible to partially bypass the `fs` scope definition. It is not possible to traverse into arbitrary paths, as the issue is limited to neighboring files and sub folders of already allowed paths. The impact differs on Windows, MacOS and Linux due to different specifications of valid path characters. This bypass depends on the file picker dialog or dragged files, as user selected paths are automatically added to the allow list at runtime. A successful bypass requires the user to select a pre-existing malicious file or directory during the file picker dialog and an adversary controlled logic to access these files. The issue has been patched in versions 1.0.7, 1.1.2 and 1.2.0. As a workaround, disable the dialog and fileDropEnabled component inside the tauri.conf.json.","status":"published","published":"2022-11-10T21:15:10.413Z","modified":"2026-06-17T05:03:57.473Z","cvss":[{"version":"3.1","score":2.6,"vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:C/C:L/I:N/A:N","level":"low","assessor":"secondary"},{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-668","CWE-706"],"updated_at":"2026-11-02T14:07:31.914793Z"}],"osv":[{"id":"CVE-2022-41874","title":"Tauri Filesystem Scope can be Partially Bypassed","description":"Tauri is a framework for building binaries for all major desktop platforms. In versions prior to 1.0.7 and 1.1.2, Tauri is vulnerable to an Incorrectly-Resolved Name. Due to incorrect escaping of special characters in paths selected via the file dialog and drag and drop functionality, it is possible to partially bypass the `fs` scope definition. It is not possible to traverse into arbitrary paths, as the issue is limited to neighboring files and sub folders of already allowed paths. The impact differs on Windows, MacOS and Linux due to different specifications of valid path characters. This bypass depends on the file picker dialog or dragged files, as user selected paths are automatically added to the allow list at runtime. A successful bypass requires the user to select a pre-existing malicious file or directory during the file picker dialog and an adversary controlled logic to access these files. The issue has been patched in versions 1.0.7, 1.1.2 and 1.2.0. As a workaround, disable the dialog and fileDropEnabled component inside the tauri.conf.json.","status":"published","published":"2022-11-10T00:00:00Z","modified":"2026-10-28T02:30:55.927406305Z","cvss":[{"version":"3.1","score":2.6,"vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:C/C:L/I:N/A:N","level":"low"}],"cwes":["CWE-668","CWE-706"],"updated_at":"2026-11-02T15:44:27.186787Z"},{"id":"GHSA-q9wv-22m9-vhqh","title":"Tauri Filesystem Scope can be Partially Bypassed","description":"### Impact\n\nDue to incorrect escaping of special characters in paths selected via the file dialog and drag and drop functionality, it was possible to partially bypass the `fs` scope definition. It was not possible to traverse into arbitrary paths, as the issue was limited to neighboring files and sub folders of already allowed paths.\n\nThe impact differs on Windows, MacOS and Linux due to different specifications of valid path characters.\n\nOn Linux or MacOS based systems it was possible to use the `*`, `**` and `[a-Z]` patterns inside a path, which allowed to read the content of sub directories and single character files in a folder, where only specific files or the directory itself were allowed.\n\nOn Windows `[a-Z]` was the possible bypass pattern, as `*` is not treated as a valid path component. This implies that only single character files inside an already allowed directory were unintentionally accessible.\n\nThis bypass depends on the file picker dialog or dragged files, as user selected paths are automatically added to the allow list at runtime.\n\nA successful bypass requires the user to select a pre-existing malicious file or directory during the file picker dialog and an adversary controlled logic to access these files. This means the issue by itself can not be abused and requires further intentional or unintentional privileges.\n\n### Workaround\n\nDisable the `dialog` and `fileDropEnabled` component inside the `tauri.conf.json`.\n\n### Patches\n\nThe issue has been resolved in #5237 and the implementation now properly escapes the special characters. The patch has been included in releases: `1.0.7`, `1.1.2` and `1.2.0`\n\n### For more information\n\nThis issue was initially reported by MessyComposer in #5234.\n\nIf you have any questions or comments about this advisory:\n\nOpen an issue in tauri\nEmail us at security@tauri.app","status":"published","published":"2022-11-08T17:33:26Z","modified":"2023-11-08T04:10:33.403373Z","cvss":[{"version":"3.1","score":2.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N","level":"low"}],"cwes":["CWE-284"],"updated_at":"2026-11-02T15:46:54.40888Z"},{"id":"RUSTSEC-2022-0091","title":"`tauri` filesystem scope partial bypass","description":"A bug identified in [this](https://github.com/tauri-apps/tauri/issues/5234) issue allows a partial filesystem scope bypass if glob characters are used within file dialog or drag-and-drop functionalities.\n\n[This](https://github.com/tauri-apps/tauri/pull/5237) PR fixes the issue by escaping glob characters.","status":"published","published":"2022-09-19T12:00:00Z","modified":"2023-11-08T04:10:33.403373Z","cvss":[{"version":"3.1","score":2.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:N","level":"low"}],"updated_at":"2026-11-02T15:53:39.971022Z"}]}}
