{"answers":{"affected":"3 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-39215 exists.","fix":"Upgrade tauri to 1.0.6 or later.","what":"CVE-2022-39215 is a high-severity path traversal vulnerability in tauri-apps tauri, published on 15 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-39215 and fix it if it is affected.\n\nWhat it is: CVE-2022-39215 is a high-severity path traversal vulnerability in tauri-apps tauri, published on 15 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-39215 exists.\n\nAffected packages and fixed versions:\n- tauri (crates.io): affected all versions; fixed in 1.0.6\n- tauri (crates.io): affected all versions; fixed in 1.0.6\n- tauri (crates.io): affected from 0.0.0-0; fixed in 1.0.6\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-39215/ (Markdown: https://insights.sbomify.com/CVE-2022-39215/index.md)","id":"CVE-2022-39215","markdown":"https://insights.sbomify.com/CVE-2022-39215/index.md","name":"CVE-2022-39215","record":{"aliases":["GHSA-28m8-9j7v-x499","RUSTSEC-2022-0088"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Tauri desktop framework","requires_auth":"none","summary":"Attackers can bypass filesystem scope restrictions to list directories outside allowed paths using symbolic links in Tauri applications.","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":8.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"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. Due to missing canonicalization when `readDir` is called recursively, it was possible to display directory listings outside of the defined `fs` scope. This required a crafted symbolic link or junction folder inside an allowed path of the `fs` scope. No arbitrary file content could be leaked. The issue has been resolved in version 1.0.6 and the implementation now properly checks if the requested (sub) directory is a symbolic link outside of the defined `scope`. Users are advised to upgrade. Users unable to upgrade should disable the `readDir` endpoint in the `allowlist` inside the `tauri.conf.json`.","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":"The readDir Endpoint Scope can be Bypassed With Symbolic Links in Tauri","id":"CVE-2022-39215","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":3,"n_references":4,"next":{"headline":"Combodo iTop's weak password reset token leads to account takeover","id":"CVE-2022-39216"},"packages":[{"ecosystem":"crates.io","fixed":["1.0.6"],"introduced":["0"],"last_affected":[],"package":"tauri","purl":null,"source":"GHSA-28m8-9j7v-x499"},{"ecosystem":"crates.io","fixed":["1.0.6"],"introduced":["0"],"last_affected":[],"package":"tauri","purl":"pkg:cargo/tauri","source":"GHSA-28m8-9j7v-x499"},{"ecosystem":"crates.io","fixed":["1.0.6"],"introduced":["0.0.0-0"],"last_affected":[],"package":"tauri","purl":"pkg:cargo/tauri","source":"RUSTSEC-2022-0088"}],"prev":{"headline":"Authenticated users of Combodo iTop can take over any account","id":"CVE-2022-39214"},"products":["tauri"],"published":"2022-09-15","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":6.8,"headline":"Tauri vulnerable to path traversal","id":"CVE-2022-46171","kev_date_added":null,"published":"2022-12-23"},{"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":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-22","vendors":["tauri-apps"]},"summary":"Attackers can bypass filesystem scope restrictions to list directories outside allowed paths using symbolic links in Tauri applications.","url":"https://insights.sbomify.com/CVE-2022-39215/"}