CVE-2022-21691 Improper Access Control in Onionshare

Medium 4.3 Published Updated

Attackers can spoof chat leave messages in OnionShare, misleading other participants about their presence in the chatroom.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-21691?

CVE-2022-21691 is a medium-severity missing authorization vulnerability in onionshare, published on 18 Jan 2022. Any signed-in user can exploit it over the network, 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 chat participants can spoof their channel leave message, tricking others into assuming they left the chatroom.

Weakness: CWE-306

Which versions are affected by CVE-2022-21691?

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

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

Products include Onionshare Onionshare.

How do I fix CVE-2022-21691?

Upgrade onionshare-cli to 2.5 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2022-21691 being exploited?

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

Sources

Also known as DEBIAN-CVE-2022-21691, GHSA-w9m4-7w72-r766, PYSEC-2022-42.

Is CVE-2022-21691 in your software?

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

Check your SBOMs for free