{"answers":{"affected":"8 open source packages ship an affected version, including tauri. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-46171 exists.","fix":"Upgrade tauri to a fixed version for your release line: 1.0.8, 1.1.3, 1.2.3 or 2.0.0-alpha.2.","what":"CVE-2022-46171 is a medium-severity path traversal vulnerability in tauri-apps tauri, published on 23 Dec 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-46171 and fix it if it is affected.\n\nWhat it is: CVE-2022-46171 is a medium-severity path traversal vulnerability in tauri-apps tauri, published on 23 Dec 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-46171 exists.\n\nAffected packages and fixed versions:\n- tauri (crates.io): affected from 1.0.0; fixed in 1.0.8\n- tauri (crates.io): affected from 1.0.0; fixed in 1.0.8\n- tauri (crates.io): affected from 1.1.0; fixed in 1.1.3\n- tauri (crates.io): affected from 1.1.0; fixed in 1.1.3\n- tauri (crates.io): affected from 1.2.0; fixed in 1.2.3\n- tauri (crates.io): affected from 1.2.0; fixed in 1.2.3\n- tauri (crates.io): affected from 2.0.0-alpha.0; fixed in 2.0.0-alpha.2\n- tauri (crates.io): affected from 2.0.0-alpha.0; fixed in 2.0.0-alpha.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-46171/ (Markdown: https://insights.sbomify.com/CVE-2022-46171/index.md)","id":"CVE-2022-46171","markdown":"https://insights.sbomify.com/CVE-2022-46171/index.md","name":"CVE-2022-46171","record":{"aliases":["GHSA-6mv3-wm7j-h4w5"],"analysis":{"component_type":"desktop_application","fix_type":"patch","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Tauri desktop framework","requires_auth":"low_privilege","summary":"Tauri framework allows attackers to read files in subdirectories of allowed paths due to incorrect wildcard handling in filesystem glob patterns.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tauri","vendor":"tauri"}],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"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.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Tauri vulnerable to path traversal","id":"CVE-2022-46171","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":8,"n_references":3,"next":{"headline":"authentik allows existing authenticated users to create arbitrary accounts","id":"CVE-2022-46172"},"packages":[{"ecosystem":"crates.io","fixed":["1.0.8"],"introduced":["1.0.0"],"last_affected":[],"package":"tauri","purl":null,"source":"GHSA-6mv3-wm7j-h4w5"},{"ecosystem":"crates.io","fixed":["1.0.8"],"introduced":["1.0.0"],"last_affected":[],"package":"tauri","purl":"pkg:cargo/tauri","source":"GHSA-6mv3-wm7j-h4w5"},{"ecosystem":"crates.io","fixed":["1.1.3"],"introduced":["1.1.0"],"last_affected":[],"package":"tauri","purl":null,"source":"GHSA-6mv3-wm7j-h4w5"},{"ecosystem":"crates.io","fixed":["1.1.3"],"introduced":["1.1.0"],"last_affected":[],"package":"tauri","purl":"pkg:cargo/tauri","source":"GHSA-6mv3-wm7j-h4w5"},{"ecosystem":"crates.io","fixed":["1.2.3"],"introduced":["1.2.0"],"last_affected":[],"package":"tauri","purl":null,"source":"GHSA-6mv3-wm7j-h4w5"},{"ecosystem":"crates.io","fixed":["1.2.3"],"introduced":["1.2.0"],"last_affected":[],"package":"tauri","purl":"pkg:cargo/tauri","source":"GHSA-6mv3-wm7j-h4w5"},{"ecosystem":"crates.io","fixed":["2.0.0-alpha.2"],"introduced":["2.0.0-alpha.0"],"last_affected":[],"package":"tauri","purl":null,"source":"GHSA-6mv3-wm7j-h4w5"},{"ecosystem":"crates.io","fixed":["2.0.0-alpha.2"],"introduced":["2.0.0-alpha.0"],"last_affected":[],"package":"tauri","purl":"pkg:cargo/tauri","source":"GHSA-6mv3-wm7j-h4w5"}],"prev":{"headline":"CodeIgniter is vulnerable to improper authentication via Session Handlers","id":"CVE-2022-46170"},"products":["tauri"],"published":"2022-12-23","related":[{"cvss_score":8.4,"headline":"Updater Private Keys Possibly Leaked via Vite Environment Variables in tauri-cli","id":"CVE-2023-46115","kev_date_added":null,"published":"2023-10-19"},{"cvss_score":8.3,"headline":"The readDir Endpoint Scope can be Bypassed With Symbolic Links in Tauri","id":"CVE-2022-39215","kev_date_added":null,"published":"2022-09-15"},{"cvss_score":6.1,"headline":"Tauri: Origin Confusion Allows Remote Pages to Invoke Local-Only IPC Commands","id":"CVE-2026-42184","kev_date_added":null,"published":"2026-05-27"},{"cvss_score":4.8,"headline":"Tauri vulnerable to Regression on Filesystem Scope Checks for Dotfiles","id":"CVE-2023-34460","kev_date_added":null,"published":"2023-06-23"},{"cvss_score":4.8,"headline":"Tauri Open Redirect Vulnerability Possibly Exposes IPC to External Sites","id":"CVE-2023-31134","kev_date_added":null,"published":"2023-05-09"},{"cvss_score":2.6,"headline":"Tauri Filesystem Scope can be Partially Bypassed","id":"CVE-2022-41874","kev_date_added":null,"published":"2022-11-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-15","vendors":["tauri-apps"]},"summary":"Tauri framework allows attackers to read files in subdirectories of allowed paths due to incorrect wildcard handling in filesystem glob patterns.","url":"https://insights.sbomify.com/CVE-2022-46171/"}