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 does not enforce the Receive mode disable_files setting in cli/onionshare_cli/web/receive_mode.py, where ReceiveModeRequest._get_file_stream() writes multipart file[] data to disk despite the text-only setting. This issue is fixed in version 2.6.4.
Published: 2026-07-31
Score: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

When OnionShare Run in Receive mode, the software should honour the disable_files setting and reject all file uploads. Instead, prior to version 2.6.4 the code that handles multipart uploads writes the entire file payload to disk regardless of that setting. This bug means a malicious sender can cause local files to be written or existing files to be overwritten, compromising the confidentiality and integrity of the host machine's filesystem. The weakness is an authorization bypass where a user-controlled key (the configuration flag) is ignored, leading to unintended data persistence on the server side.

Affected Systems

All installations of OnionShare older than version 2.6.4, regardless of operating system. The bug manifests in both the command‑line interface and the desktop application when the receive mode is enabled and the configuration option disable_files is set to true.

Risk and Exploitability

The CVSS score of 5.4 indicates a medium severity impact. The EPSS score of less than 1% suggests a very low probability of exploitation observed in the wild. The advisory is not catalogued as a known exploited vulnerability by CISA. Exploitation requires the attacker to successfully submit a file via the receive mode; no remote code execution is involved but the attacker gains the ability to write arbitrary files to the local filesystem.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade OnionShare to version 2.6.4 or later, which contains the official fix for the file‑write bypass.
  • If receive mode is not required, disable it or restrict access to the receive port to prevent unsolicited file uploads.
  • Scan the filesystem for unexpected files that may have been written before the patch, remove or remediate suspicious files.

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-v833-3823-cmhp OnionShare Receive mode writes uploaded files even when file uploads are disabled
History

Sat, 01 Aug 2026 00: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 19:15: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 does not enforce the Receive mode disable_files setting in cli/onionshare_cli/web/receive_mode.py, where ReceiveModeRequest._get_file_stream() writes multipart file[] data to disk despite the text-only setting. This issue is fixed in version 2.6.4.
Title OnionShare Receive mode writes uploaded files even when file uploads are disabled
Weaknesses CWE-863
References
Metrics cvssV3_1

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


Subscriptions

Onionshare Onionshare
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-31T23:28:15.094Z

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

Link: CVE-2026-54707

cve-icon Vulnrichment

Updated: 2026-07-31T23:28:09.524Z

cve-icon NVD

Status : Received

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

Modified: 2026-08-01T00:17:16.933

Link: CVE-2026-54707

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses