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. Prior to 2.6.4, OnionShare CLI/Desktop follows symbolic links in cli/onionshare_cli/web/send_base_mode.py through SendBaseModeWeb.set_file_info() and stream_individual_file(), allowing remote recipients of Share or Website mode to read local files outside the selected directory. This issue is fixed in version 2.6.4.
Published: 2026-07-31
Score: 4.8 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

OnionShare, a tool for anonymous file sharing over Tor, can send files that are reachable through symbolic links in the user‑specified directory. When a user selects a directory to share, the CLI/desktop client follows symlinks inside the directory, causing the remote recipient to receive files outside the intended share path. This flaw allows a malicious recipient to read arbitrary local files on the sender’s machine, compromising confidentiality and potentially exposing sensitive data. The weakness is classified as CWE‑59, directory traversal via symbolic links.

Affected Systems

The affected product is OnionShare prior to v2.6.4. The vulnerability exists in the OnionShare CLI/Desktop implementation that uses the SendBaseModeWeb.set_file_info() and stream_individual_file() paths. The fix is included in release v2.6.4 and later.

Risk and Exploitability

The CVSS score of 4.8 indicates moderate impact. The EPSS score is below 1 %, suggesting that the likelihood of exploitation is very low at present. The vulnerability is not listed in the CISA KEV catalog. The attack vector is likely a remote file request via the Share or Website mode, with no authentication or network restriction beyond Tor. An attacker only needs to act as a normal recipient to trigger the symbolic‑link resolution and read local files.

Generated by OpenCVE AI on August 3, 2026 at 09:52 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to OnionShare v2.6.4 or newer, which removes symlink following in send_base_mode.
  • Ensure that any symbolic links inside directories you intend to share do not point to sensitive locations or delete them before sharing.
  • Verify that the sharing interface does not expose files outside the chosen directory by reviewing the shared content list before confirming the share action.

Generated by OpenCVE AI on August 3, 2026 at 09:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-22p9-r2f5-22mf OnionShare follows symlinks in shared directories, allowing unintended disclosure of local files
History

Fri, 31 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 31 Jul 2026 18:45:00 +0000

Type Values Removed Values Added
First Time appeared Onionshare
Onionshare onionshare
Vendors & Products Onionshare
Onionshare onionshare

Fri, 31 Jul 2026 17:00:00 +0000

Type Values Removed Values Added
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. Prior to 2.6.4, OnionShare CLI/Desktop follows symbolic links in cli/onionshare_cli/web/send_base_mode.py through SendBaseModeWeb.set_file_info() and stream_individual_file(), allowing remote recipients of Share or Website mode to read local files outside the selected directory. This issue is fixed in version 2.6.4.
Title OnionShare follows symlinks in shared directories, allowing unintended disclosure of local files
Weaknesses CWE-59
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N'}


Subscriptions

Onionshare Onionshare
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-31T19:00:44.128Z

Reserved: 2026-06-15T22:58:06.563Z

Link: CVE-2026-54706

cve-icon Vulnrichment

Updated: 2026-07-31T18:55:10.461Z

cve-icon NVD

Status : Received

Published: 2026-07-31T17:16:33.723

Modified: 2026-07-31T19:17:10.430

Link: CVE-2026-54706

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T10:00:12Z

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')