CSIRTS // UNIFIED SECURITY ADVISORY FEEDSYS ● ONLINE · POWERED BY INTELFUSIONS.COM

GHSA-22p9-r2f5-22mf: OnionShare follows symlinks in shared directories, allowing unintended disclosure of local files

mediumCVSS 4.8CVE-2026-54706
Summary OnionShare CLI/Desktop 2.6.3 can follow symbolic links inside a selected Share or Website directory and serve the symlink target rather than limiting access to files physically contained in the selected directory. If a user shares a directory that contains attacker-supplied or otherwise untrusted symlinks, a remote recipient with access to the OnionShare service can read arbitrary local files readable by the OnionShare process that the symlink points to. This affects the shipped onionshare-cli Python package and the desktop application because both call the same onionshare_cli.web file-indexing and streaming code. Details Tested repository: https://github.com/onionshare/onionshare at commit 8cc75e1d7e88bd31f7276733449d412bf71c8999. Affected product evidence: - cli/pyproject.toml declares onionshare_cli version 2.6.3. - desktop/pyproject.toml declares onionshare version 2.6.3 and depends on onionshare_cli from ../cli. - cli/setup.py publishes onionshare-cli and includes onionshare_cli.web plus templates/static resources. - desktop/setup.py publishes onionshare and exposes both onionshare and onionshare-cli console scripts. Reachable default/common paths: - CLI share mode is the default mode when no --receive, --website, or --chat flag is provided (cli/onionshare_cli/init.py:234-241) and accepts filesystem paths from CLI arguments (cli/onionshare_cli/init.py:184-189). - CLI website mode is exposed through --website (cli/onionshare_cli/init.py:55-59). - Desktop Website mode calls self.web.website_mode.set_file_info(self.filenames) before starting (desktop/onionshare/tab/mode/website_mode/init.py:281-287). Desktop Share mode calls self.mode.web.share_mode.set_file_info(...) before serving (desktop/onionshare/tab/mode/share_mode/threads.py:42-49). - Documentation describes Website mode as selecting files/folders and serving them over OnionShare (docs/source/features.rst:109-115). Root cause: - SendBaseModeWeb.set_file_info() expands a single selected directo

Details

Source
GitHub Security Advisories (INTL · database · site)
Severity
medium — CVSS 4.8
Published
2026-07-31
Last updated
2026-07-31
Exploitation
Not in CISA KEV at last sync

Original advisory: https://github.com/advisories/GHSA-22p9-r2f5-22mf

Referenced CVEs

CVECSIRTS overviewExternal
CVE-2026-54706coverage & exploitation statusNVD · CVE.org

Same CVEs, other sources

How other CERTs, PSIRTs and databases cover the vulnerabilities in this advisory.

More from GitHub Security Advisories