CVE-2022-21695
Improper Access Control 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 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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
4.3
Improper Access Control 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 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.
- Record
CVE-2022-21695- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N - Weakness
- CWE-287
- Updated
- 2026-11-02
EUVDEUVD-2022-0186
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 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.
- Record
EUVD-2022-0186- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-99p8-9p2c-49j4
5.1
Improper Access Control 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-009
- Vulnerability type: Improper Access Control
- Threat level: Low
Description:
Authenticated users (or unauthenticated in public mode) can send messages without being visible in the list of chat participants.
Technical description:
Prerequisites:
- Existing chatroom
- Access to the chatroom (Public or known Private Key)
- Either a modified frontend client or manual requests from burp/curl
If a user opens the chatroom without emitting the join message he will not be present in session.users[x] list. Therefore there is no listing in the frontend and no chat participant knows another party joined the chat. It is still possible to send messages in the chatroom.
If a user decides to abuse OTF-003 (page 22) he can impersonate messages from existing users; others would not be able to distinguish original and faked messages. This is also a prerequisite for OTF-004 (page 19).
Impact:
An adversary with access to the chat environment can send messages to the chat without being visible in the list of chat participants.
Recommendation:
- Allow chat access only after emission of the join event.
- Implement proper session handling.
- Record
GHSA-99p8-9p2c-49j4- CVSS 4.0
- 5.1 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/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:N/UI:R/S:U/C:L/I:N/A:N - Weakness
- CWE-287
- 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 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.
- Record
CVE-2022-21695- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N - CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:P/A:N - Weakness
- CWE-287
- Updated
- 2026-11-02
OSV
4.3
Improper Access Control 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 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.
- Record
CVE-2022-21695- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N - Weakness
- CWE-287
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2022-21695
5.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 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.
- Record
DEBIAN-CVE-2022-21695- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-03
Show 5 moreShow less
OSVGHSA-99p8-9p2c-49j4
5.1
Improper Access Control 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-009
- Vulnerability type: Improper Access Control
- Threat level: Low
Description:
Authenticated users (or unauthenticated in public mode) can send messages without being visible in the list of chat participants.
Technical description:
Prerequisites:
- Existing chatroom
- Access to the chatroom (Public or known Private Key)
- Either a modified frontend client or manual requests from burp/curl
If a user opens the chatroom without emitting the join message he will not be present in session.users[x] list. Therefore there is no listing in the frontend and no chat participant knows another party joined the chat. It is still possible to send messages in the chatroom.
If a user decides to abuse OTF-003 (page 22) he can impersonate messages from existing users; others would not be able to distinguish original and faked messages. This is also a prerequisite for OTF-004 (page 19).
Impact:
An adversary with access to the chat environment can send messages to the chat without being visible in the list of chat participants.
Recommendation:
- Allow chat access only after emission of the join event.
- Implement proper session handling.
- Record
GHSA-99p8-9p2c-49j4- CVSS 4.0
- 5.1 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/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:N/UI:R/S:U/C:L/I:N/A:N - Weakness
- CWE-287
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2022-21695
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 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.
- Record
UBUNTU-CVE-2022-21695- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N - CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/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-46 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 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.
- Record
PYSEC-2022-46- 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-21695 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.86%, the 58th percentile. Fixed in onionshare-cli 2.5.
References
github.com/onionshare/onionshare/releases/tag/v2.5
github.com/onionshare/onionshare/security/advisories/GHSA-99p8-9p2c-49j4
nvd.nist.gov/vuln/detail/CVE-2022-21695
github.com/pypa/advisory-database/tree/main/vulns/onionshare-cli/PYSEC-2022-46.yaml
github.com/advisories/GHSA-99p8-9p2c-49j4
github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21695.json
Show 15 moreShow less
security-tracker.debian.org/tracker/CVE-2022-21695
github.com/onionshare/onionshare
ubuntu.com/security/CVE-2022-21695
cve.org/CVERecord?id=CVE-2022-21695
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