CVE-2022-21689 Denial of Service in Onionshare

High 7.5 Published Updated

An attacker can block file uploads for other users in OnionShare receive mode by triggering a rate limit, causing denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-21689?

CVE-2022-21689 is a high-severity denial of service vulnerability in onionshare, published on 18 Jan 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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. In affected versions the receive mode limits concurrent uploads to 100 per second and blocks other uploads in the same second, which can be triggered by a simple script. An adversary with access to the receive mode can block file upload for others. There is no way to block this attack in public mode due to the anonymity properties of the tor network.

Weakness: CWE-400

Which versions are affected by CVE-2022-21689?

3 open source packages ship an affected version, including onionshare-cli. It affects 1 product.

PackageAffectedFixed in
onionshare-cli PyPIAll versions2.5
onionshare-cli PyPIAll versions2.5
onionshare-cli PyPIAll versions2.5

Products include Onionshare Onionshare.

How do I fix CVE-2022-21689?

Upgrade onionshare-cli to 2.5 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2022-21689 being exploited?

There is no known exploitation of CVE-2022-21689 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2022-21689, GHSA-jh82-c5jw-pxpc, PYSEC-2022-40, UBUNTU-CVE-2022-21689.

Is CVE-2022-21689 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free