CVE-2022-21689: Denial of Service in Onionshare

onionshare-cli Updated 02 Oct 2025

Summary

21/01/2022
Yes i
High
7.5

CVE-2022-21689: Denial of Service in Onionshare. Affects onionshare-cli versions < 2.5. Fixed in 2.5. How to fix ↓

Also tracked for

The same CVE-2022-21689 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Onionshare is an open-source tool that allows users to securely and anonymously share files over the Tor network. It provides a simple interface for users to create a temporary website on their own computer and share files with others. Onionshare is written in Python and is available on PyPI.

Vulnerability Detail

The vulnerability identified as CVE-2022-21689 is a Denial of Service (DoS) issue in Onionshare version 2.4. It was discovered during a penetration test conducted by Radically Open Security. The vulnerability allows an attacker to block file uploads for other users in the receive mode of Onionshare. By sending a large number of requests in parallel, the attacker can trigger a limitation that blocks other uploads in the same second. This limitation can be bypassed by making changes to the 'ulimit -n' configuration. The impact of this vulnerability is moderate, as it can disrupt the file sharing functionality of Onionshare.

How To Fix

Latest published version: 2.7.0 as of 22 Oct 2026

pip install --upgrade "onionshare-cli==2.7.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.5

This is the first release that contains the fix.

pip install --upgrade "onionshare-cli==2.5"

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

Workaround

There is no specific workaround provided for this vulnerability. Users are advised to update to the latest patched version of Onionshare once it becomes available.

Conclusion

The vulnerability identified as CVE-2022-21689 in Onionshare version 2.4 allows an attacker to block file uploads for other users in the receive mode. This can disrupt the file sharing functionality of Onionshare. To mitigate this vulnerability, it is recommended to update to the latest patched version of Onionshare (version 2.5 or higher) once it becomes available. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for onionshare-cli →

Share this vulnerability

FAQ

The vulnerability allows an attacker to block file uploads for other users in the receive mode of Onionshare. This can disrupt the file sharing functionality of Onionshare.

The attacker can exploit the vulnerability by sending a large number of requests in parallel, triggering the limitation on concurrent uploads in Onionshare.

No, there is no way to block this attack in public mode due to the anonymity properties of the Tor network.

The recommended solution is for the developers of Onionshare to remove the limitation on concurrent uploads or derive the directory name from milliseconds.

There are no known instances of this vulnerability being exploited in the wild.

Related vulnerabilities

Recent vulnerabilities recorded for onionshare-cli.

How To Fix

Latest published version: 2.7.0 as of 22 Oct 2026

pip install --upgrade "onionshare-cli==2.7.0"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

2.5

This is the first release that contains the fix.

pip install --upgrade "onionshare-cli==2.5"

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