{"id":"CVE-2022-21693","aliases":["CVE-2022-21693","GHSA-jgm9-xpfj-4fq6","PYSEC-2022-44"],"related":[],"kind":"vulnerability","state":"published","title":"Path traversal in Onionshare","summary":"OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor network. In affected versions an adversary with a primitive that allows for filesystem access from the context of the Onionshare process can access sensitive files in the entire user home folder. This could lead to the leaking of sensitive data. Due to the automatic exclusion of hidden folders, the impact is reduced. This can be mitigated by usage of the flatpak release.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor network. In affected versions an adversary with a primitive that allows for filesystem access from the context of the Onionshare process can access sensitive files in the entire user home folder. This could lead to the leaking of sensitive data. Due to the automatic exclusion of hidden folders, the impact is reduced. This can be mitigated by usage of the flatpak release.","source":"cvelist"},{"lang":"en","text":"Between September 26, 2021 and October 8, 2021, [Radically Open Security](https://www.radicallyopensecurity.com/) conducted a penetration test of OnionShare 2.4, funded by the Open Technology Fund's [Red Team lab](https://www.opentech.fund/labs/red-team-lab/). This is an issue from that penetration test.\n\n- Vulnerability ID: OTF-013\n- Vulnerability type: Improper Hardening\n- Threat level: Low\n\n## Description:\n\nThe filesystem restriction could be hardened and should only allow for pre-defined subfolders.\n\n## Technical description:\n\nThe Flatpak and Snap configurations allow for read-only access on the whole home folder. The relevant lines in the configuration files are `onionshare/snap/snapcraft.yaml#L20` and `onionshare/flatpak/org.onionshare.OnionShare.yaml#L19` , respectively.\n\nThe encapsulation of filesystem access via these mechanisms should be restricted to pre-defined folders and not allow for access to (configuration) files outside the Onionshare-specific folders.\n\nSadly Snap does not allow for further restriction to specific folders and therefore cannot be further hardened. By default both frameworks disallow access to hidden folders and therefore reduce the potential impact.\n\n## Impact:\n\nAn adversary with a primitive that allows for filesystem access from the context of the Onionshare process can access sensitive files in the entire user home folder. This could lead to the leaking of sensitive data. Due to the automatic exclusion of hidden folders, the impact is reduced.\n\n## Recommendation:\n\n- Reduce read access in Flatpak configuration.","format":"markdown","source":"ghsa"},{"lang":"es","text":"OnionShare es una herramienta de código abierto que permite compartir archivos, alojar sitios web y chatear con amigos de forma segura y anónima usando la red Tor. En las versiones afectadas, un adversario con una primitiva que permita el acceso al sistema de archivos desde el contexto del proceso de Onionshare puede acceder a los archivos confidenciales de toda la carpeta de inicio del usuario. Esto podría conllevar a un filtrado de datos confidenciales. Debido a la exclusión automática de las carpetas ocultas, el impacto es reducido. Esto puede mitigarse mediante el uso de la versión flatpak","source":"nvd"}],"published":"2022-01-18T22:03:54.000Z","modified":"2026-06-17T04:26:46.583Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","score":4,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 2.5","status":"affected"}],"vendor":"onionshare","product":"onionshare","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.3","status":"affected","fixed":"2.5"}],"ecosystem":"PyPI","package":"onionshare-cli","purl":"pkg:pypi/onionshare-cli","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.3","fixed":"2.5"}],"vendor":"onionshare","product":"onionshare","cpe":"cpe:2.3:a:onionshare:onionshare:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.5"}],"ecosystem":"PyPI","package":"onionshare-cli","purl":"pkg:pypi/onionshare-cli","source":"pysec"}],"references":[{"url":"https://github.com/onionshare/onionshare/releases/tag/v2.5","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/onionshare/onionshare/security/advisories/GHSA-jgm9-xpfj-4fq6","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21693","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/onionshare/onionshare","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/onionshare-cli/PYSEC-2022-44.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T14:11:54.774Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-21693","url":"https://www.cve.org/CVERecord?id=CVE-2022-21693","licence":"CVE Terms of Use","modified":"2025-04-23T19:10:35.007Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jgm9-xpfj-4fq6","url":"https://github.com/advisories/GHSA-jgm9-xpfj-4fq6","licence":"CC-BY-4.0","modified":"2024-10-07T21:08:21.121Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-21693","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21693","licence":"Public domain","modified":"2026-06-17T04:26:46.583Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-44","url":"https://osv.dev/vulnerability/PYSEC-2022-44","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:08.248Z"}],"updatedAt":"2026-11-25T22:58:09.273Z","epss":{"score":0.01199,"percentile":0.69017,"date":"2026-12-01T12:00:22.000Z"}}