CVE-2022-21696 Username spoofing in OnionShare

Medium 4.3 Published Updated

Attackers can impersonate other chat participants in OnionShare by appending whitespace to usernames, bypassing identity verification.

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

CVE-2022-21696 is a medium-severity 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 it is possible to change the username to that of another chat participant with an additional space character at the end of the name string. An adversary with access to the chat environment can use the rename feature to impersonate other participants by adding whitespace characters at the end of the username.

Weakness: CWE-20

Which versions are affected by CVE-2022-21696?

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

Upgrade onionshare-cli to 2.5 or later.

Is CVE-2022-21696 being exploited?

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

Sources

Also known as DEBIAN-CVE-2022-21696, GHSA-68vr-8f46-vc9f, PYSEC-2022-47.

Is CVE-2022-21696 in your software?

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

Check your SBOMs for free