CVE-2022-21696
Username spoofing in OnionShare
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
4.3
Username spoofing in OnionShare
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.
- Record
CVE-2022-21696- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-20
- Updated
- 2026-11-02
EUVDEUVD-2022-0187
4.3
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.
- Record
EUVD-2022-0187- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-68vr-8f46-vc9f
5.3
Username spoofing in OnionShare
Between September 26, 2021 and October 8, 2021, Radically Open Security conducted a penetration test of OnionShare 2.4, funded by the Open Technology Fund's Red Team lab. This is an issue from that penetration test.
- Vulnerability ID: OTF-005
- Vulnerability type: Improper Input Sanitization
- Threat level: Low
Description:
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.
Technical description:
Assumed users in Chat:
- Alice
- Bob
- Mallory
- Mallory renames to
Alice. - Mallory sends message as
Alice. - Alice and Bob receive a message from Mallory disguised as
Alice, which is hard to distinguish from theAlicein the web interface.
Other (invisible) whitespace characters were found to be working as well.
Impact:
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.
Recommendation:
- Remove non-visible characters from the username
- Record
GHSA-68vr-8f46-vc9f- CVSS 4.0
- 5.3 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-20
- Updated
- 2026-11-02
NVD
4.3
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.
- Record
CVE-2022-21696- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N - CVSS 2.0
- 4.0 Medium
AV:N/AC:L/Au:S/C:N/I:P/A:N - Weakness
- CWE-20
- Updated
- 2026-11-02
OSV
4.3
Username spoofing in OnionShare
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.
- Record
CVE-2022-21696- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-20
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-21696
4.3
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.
- Record
DEBIAN-CVE-2022-21696- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-03
Show 5 moreShow less
OSVGHSA-68vr-8f46-vc9f
5.3
Username spoofing in OnionShare
Between September 26, 2021 and October 8, 2021, Radically Open Security conducted a penetration test of OnionShare 2.4, funded by the Open Technology Fund's Red Team lab. This is an issue from that penetration test.
- Vulnerability ID: OTF-005
- Vulnerability type: Improper Input Sanitization
- Threat level: Low
Description:
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.
Technical description:
Assumed users in Chat:
- Alice
- Bob
- Mallory
- Mallory renames to
Alice. - Mallory sends message as
Alice. - Alice and Bob receive a message from Mallory disguised as
Alice, which is hard to distinguish from theAlicein the web interface.
Other (invisible) whitespace characters were found to be working as well.
Impact:
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.
Recommendation:
- Remove non-visible characters from the username
- Record
GHSA-68vr-8f46-vc9f- CVSS 4.0
- 5.3 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-20
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-21696
4.3
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.
- Record
UBUNTU-CVE-2022-21696- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11983-1 No score
python-onionshare-2.5-1.1 on GA media
These are all security issues fixed in the python-onionshare-2.5-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11983-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13635-1 No score
python3-onionshare-2.6-4.1 on GA media
These are all security issues fixed in the python3-onionshare-2.6-4.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13635-1- Updated
- 2026-11-02
OSVPYSEC-2022-47 No score
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.
- Record
PYSEC-2022-47- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
onionshare-cliPyPI |
2.3 up to 2.5 | 2.5 |
onionshareDebian:12 |
before 2.5-1 | 2.5-1 |
onionshareDebian:13 |
before 2.5-1 | 2.5-1 |
onionshareDebian:14 |
before 2.5-1 | 2.5-1 |
onionshare-cliPyPI |
2.3 up to 2.5, plus listed versions 2.3.12.3.22.3.3 |
2.5 |
onionshare-cliPyPI |
before 2.5, plus listed versions 2.32.3.12.3.22.3.3 |
2.5 |
python-onionshareopenSUSE:Tumbleweed From an advisory covering 8 CVEs |
before 2.5-1.1 | 2.5-1.1 |
python3-onionshareopenSUSE:Tumbleweed From an advisory covering 11 CVEs |
before 2.6-4.1 | 2.6-4.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | OSV | |
| affected | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-21696 is a medium vulnerability (CVSS 4.3) in Onionshare, published January 18, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.71%, the 53rd percentile. Fixed in onionshare-cli 2.5.
References
github.com/onionshare/onionshare/security/advisories/GHSA-68vr-8f46-vc9f
github.com/onionshare/onionshare/releases/tag/v2.5
nvd.nist.gov/vuln/detail/CVE-2022-21696
github.com/pypa/advisory-database/tree/main/vulns/onionshare-cli/PYSEC-2022-47.yaml
github.com/advisories/GHSA-68vr-8f46-vc9f
github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21696.json
Show 15 moreShow less
security-tracker.debian.org/tracker/CVE-2022-21696
github.com/onionshare/onionshare
ubuntu.com/security/CVE-2022-21696
cve.org/CVERecord?id=CVE-2022-21696
suse.com/security/cve/CVE-2022-21688
suse.com/security/cve/CVE-2022-21690
suse.com/security/cve/CVE-2022-21691
suse.com/security/cve/CVE-2022-21692
suse.com/security/cve/CVE-2022-21693
suse.com/security/cve/CVE-2022-21694
suse.com/security/cve/CVE-2022-21695
suse.com/security/cve/CVE-2022-21696
suse.com/security/cve/CVE-2018-19960
suse.com/security/cve/CVE-2021-41867
suse.com/security/cve/CVE-2021-41868