Concurrent Upload Denial of Service in OnionShare: CVE-2022-21689

onionshare Updated 02 Oct 2025

Summary

18/01/2022
N/A
Yes i
High
7.5

CVE-2022-21689: OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor network. Affects onionshare across 2 version ranges.

< 2.2-3+deb11u1 < 6642c25959f14daeb4a572798ccf4acd765d5795

Fixed in 2.2-3+deb11u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

OnionShare is an open-source tool designed for secure and anonymous file sharing, website hosting, and chat functionalities over the Tor network. It allows users to share files without revealing their identity, leveraging the privacy features of Tor. However, certain versions of OnionShare are vulnerable to a denial-of-service attack in receive mode, where an adversary can block file uploads for others by exploiting the upload limit.

Vulnerability Detail

The vulnerability arises from the receive mode of OnionShare, which limits concurrent uploads to 100 per second. If an adversary gains access to this mode, they can trigger a simple script to saturate the upload capacity, effectively blocking other users from uploading files. This issue is exacerbated by the anonymity properties of the Tor network, making it impossible to prevent such attacks in public mode. The potential ramifications include disruption of service for legitimate users and a significant impact on the usability of the application.

How To Fix

Minimum fixed version

2.2-3+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade onionshare

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no effective workarounds to mitigate this vulnerability in public mode due to the inherent anonymity of the Tor network. Users are advised to limit access to the receive mode to trusted individuals only.

Conclusion

CVE-2022-21689 represents a significant vulnerability in OnionShare that can lead to denial-of-service attacks in its receive mode. Users are strongly encouraged to update to the latest versions to mitigate this risk. Given the nature of the Tor network, public mode users should be particularly cautious about access control.

See every vulnerability recorded for onionshare →

Share this vulnerability

FAQ

CVE-2022-21689 is a vulnerability in OnionShare that allows an adversary to block file uploads for others by exploiting the upload limit in receive mode.

You can check if your installation is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring installation.

The main consequence is a denial-of-service attack where legitimate users are unable to upload files, disrupting the intended functionality of OnionShare.

There is no way to prevent this attack in public mode due to the anonymity properties of the Tor network. Limiting access to trusted users is recommended.

The CVSS score for CVE-2022-21689 is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for onionshare.

How To Fix

Minimum fixed version

2.2-3+deb11u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade onionshare

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback