CVE-2022-21695 Improper Access Control in Onionshare

Medium 4.3 Published Updated

Authenticated or public users can send hidden chat messages in OnionShare, bypassing participant visibility controls.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-21695?

CVE-2022-21695 is a medium-severity missing authorization vulnerability in onionshare, published on 18 Jan 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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 authenticated users (or unauthenticated in public mode) can send messages without being visible in the list of chat participants. This issue has been resolved in version 2.5.

Weakness: CWE-287

Which versions are affected by CVE-2022-21695?

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-21695?

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-21695 being exploited?

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

Sources

Also known as DEBIAN-CVE-2022-21695, GHSA-99p8-9p2c-49j4, PYSEC-2022-46.

Is CVE-2022-21695 in your software?

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

Check your SBOMs for free