Skip to content

CVE-2022-21696 Username spoofing in OnionShare

MediumCVSS 4.3 EPSS 0.74%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

8 packages: 8 fixed.

PackageAffectedFixed inStatus
debian/onionshare(Debian 12) < 2.5-1 2.5-1 Fixed
debian/onionshare(Debian 13) < 2.5-1 2.5-1 Fixed
debian/onionshare(Debian 14) < 2.5-1 2.5-1 Fixed
onionshare < 2.5; = < 2.5 2.5 Fixed
pypi onionshare-cli(PyPI) < 2.5; = 2.3; = 2.3.1; = 2.3.2 +2 more 2.5 Fixed
ubuntu/onionshare(Ubuntu 22.04) < 2.2-3 2.2-3 Fixed
ubuntu/onionshare(Ubuntu 24.04) < 2.6-6ubuntu1; = 2.6-5 2.6-6ubuntu1 Fixed
ubuntu/onionshare(Ubuntu 25.04) < 2.6.3-1; = 2.6-6ubuntu1 2.6.3-1 Fixed

Affected products

ProductAffected versionsFixed in
pypi onionshare-cli(PyPI) >= 2.3, < 2.5 2.5
pypi onionshare-cli(PyPI) = 2.3 No fix listed
pypi onionshare-cli(PyPI) = 2.3.1 No fix listed
pypi onionshare-cli(PyPI) = 2.3.2 No fix listed
pypi onionshare-cli(PyPI) = 2.3.3 No fix listed
pypi onionshare-cli(PyPI) < 2.5 2.5
onionshare = < 2.5 No fix listed
onionshare < 2.5 2.5
debian/onionshare(Debian:12) < 2.5-1 2.5-1
debian/onionshare(Debian:14) < 2.5-1 2.5-1
debian/onionshare(Debian:13) < 2.5-1 2.5-1
ubuntu/onionshare(Ubuntu:22.04) < 2.2-3 2.2-3
ubuntu/onionshare(Ubuntu:24.04) < 2.6-6ubuntu1 2.6-6ubuntu1
ubuntu/onionshare(Ubuntu:24.04) = 2.6-5 No fix listed
ubuntu/onionshare(Ubuntu:25.04) < 2.6.3-1 2.6.3-1
ubuntu/onionshare(Ubuntu:25.04) = 2.6-6ubuntu1 No fix listed

References