{"id":"CVE-2022-21696","aliases":["DEBIAN-CVE-2022-21696","EUVD-2022-0187","GHSA-68vr-8f46-vc9f","PYSEC-2022-47","UBUNTU-CVE-2022-21696","openSUSE-SU-2024:11983-1","openSUSE-SU-2024:13635-1"],"status":"published","title":"Username spoofing in OnionShare","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.","severity":{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00714,"percentile":0.54026,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2022-01-18T19:55:10Z","modified":"2026-11-03T08:00:37Z","fixes":[{"ecosystem":"PyPI","package":"onionshare-cli","fixed_in":["2.5"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"onionshare","fixed_in":["2.5-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"onionshare","fixed_in":["2.5-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"onionshare","fixed_in":["2.5-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"onionshare-cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.3"},{"fixed":"2.5"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"onionshare","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"onionshare","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"onionshare","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"onionshare-cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.3"},{"fixed":"2.5"}]}],"versions":["2.3","2.3.1","2.3.2","2.3.3"]},{"source":"osv","ecosystem":"PyPI","package":"onionshare-cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5"}]}],"versions":["2.3","2.3.1","2.3.2","2.3.3"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"python-onionshare","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5-1.1"}]}],"bundled":8},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"python3-onionshare","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.6-4.1"}]}],"bundled":11}],"products":[{"vendor":"onionshare","product":"onionshare"}],"references":[{"url":"https://github.com/onionshare/onionshare/security/advisories/GHSA-68vr-8f46-vc9f","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"https://github.com/onionshare/onionshare/releases/tag/v2.5","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21696","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/onionshare-cli/PYSEC-2022-47.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-68vr-8f46-vc9f"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21696.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-21696","tags":["advisory"]},{"url":"https://github.com/onionshare/onionshare","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2022-21696","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-21696","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2022-21688","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-21690","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-21691","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-21692","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-21693","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-21694","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-21695","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-21696","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-19960","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-41867","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-41868","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2022-21696","title":"Username spoofing in OnionShare","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.","status":"published","published":"2022-01-18T19:55:10Z","modified":"2025-04-23T19:11:08.548Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:34:28.707644Z"}],"euvd":[{"id":"EUVD-2022-0187","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.","status":"published","published":"2022-01-18T19:55:10Z","modified":"2025-04-23T19:11:08Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T20:52:06.891582Z"}],"ghsa":[{"id":"GHSA-68vr-8f46-vc9f","title":"Username spoofing in OnionShare","description":"Between September 26, 2021 and October 8, 2021, [Radically Open Security](https://www.radicallyopensecurity.com/) conducted a penetration test of OnionShare 2.4, funded by the Open Technology Fund's [Red Team lab](https://www.opentech.fund/labs/red-team-lab/). This is an issue from that penetration test.\n\n- Vulnerability ID: OTF-005\n- Vulnerability type: Improper Input Sanitization\n- Threat level: Low\n\n## Description:\n\nIt is possible to change the username to that of another chat participant with an additional space character at the end of the name string.\n\n## Technical description:\n\nAssumed users in Chat:\n\n- Alice\n- Bob\n- Mallory\n\n1. Mallory renames to `Alice `.\n2. Mallory sends message as `Alice `.\n3. Alice and Bob receive a message from Mallory disguised as `Alice `, which is hard to distinguish from the `Alice`\nin the web interface.\n\n![otf-005-a](https://user-images.githubusercontent.com/156128/140666112-8febd4d8-6761-41aa-955c-48be76f3c657.png)\n![otf-005-b](https://user-images.githubusercontent.com/156128/140666113-1713ddf7-cef6-4dac-b718-9af1dc4ffdcd.png)\n\nOther (invisible) whitespace characters were found to be working as well.\n\n## Impact:\n\nAn 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.\n\n## Recommendation:\n\n- Remove non-visible characters from the username","status":"published","published":"2022-01-21T23:20:14Z","modified":"2024-10-08T12:39:17Z","cvss":[{"version":"4.0","score":5.3,"vector":"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","level":"medium"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:38:08.742903Z"}],"nvd":[{"id":"CVE-2022-21696","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.","status":"published","published":"2022-01-18T20:15:07.9Z","modified":"2026-06-17T04:26:46.95Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4,"vector":"AV:N/AC:L/Au:S/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:07:10.836864Z"}],"osv":[{"id":"CVE-2022-21696","title":"Username spoofing in OnionShare","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.","status":"published","published":"2022-01-18T19:55:10Z","modified":"2026-10-28T02:31:12.676160843Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:44:23.655778Z"},{"id":"DEBIAN-CVE-2022-21696","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.","status":"published","published":"2022-01-18T20:15:07.9Z","modified":"2026-11-03T08:00:37.132672923Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-03T08:25:15.646766Z"},{"id":"GHSA-68vr-8f46-vc9f","title":"Username spoofing in OnionShare","description":"Between September 26, 2021 and October 8, 2021, [Radically Open Security](https://www.radicallyopensecurity.com/) conducted a penetration test of OnionShare 2.4, funded by the Open Technology Fund's [Red Team lab](https://www.opentech.fund/labs/red-team-lab/). This is an issue from that penetration test.\n\n- Vulnerability ID: OTF-005\n- Vulnerability type: Improper Input Sanitization\n- Threat level: Low\n\n## Description:\n\nIt is possible to change the username to that of another chat participant with an additional space character at the end of the name string.\n\n## Technical description:\n\nAssumed users in Chat:\n\n- Alice\n- Bob\n- Mallory\n\n1. Mallory renames to `Alice `.\n2. Mallory sends message as `Alice `.\n3. Alice and Bob receive a message from Mallory disguised as `Alice `, which is hard to distinguish from the `Alice`\nin the web interface.\n\n![otf-005-a](https://user-images.githubusercontent.com/156128/140666112-8febd4d8-6761-41aa-955c-48be76f3c657.png)\n![otf-005-b](https://user-images.githubusercontent.com/156128/140666113-1713ddf7-cef6-4dac-b718-9af1dc4ffdcd.png)\n\nOther (invisible) whitespace characters were found to be working as well.\n\n## Impact:\n\nAn 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.\n\n## Recommendation:\n\n- Remove non-visible characters from the username","status":"published","published":"2022-01-21T23:20:14Z","modified":"2024-10-08T12:47:50.319409Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium"},{"version":"4.0","score":5.3,"vector":"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","level":"medium"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:39.618611Z"},{"id":"UBUNTU-CVE-2022-21696","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.","status":"withdrawn","published":"2022-01-18T20:15:00Z","modified":"2025-07-16T07:44:07.08038Z","cvss":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","level":"medium"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T16:53:52.391598Z"},{"id":"openSUSE-SU-2024:11983-1","title":"python-onionshare-2.5-1.1 on GA media","description":"These are all security issues fixed in the python-onionshare-2.5-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:16:11.613282Z","updated_at":"2026-11-02T16:58:35.485255Z"},{"id":"openSUSE-SU-2024:13635-1","title":"python3-onionshare-2.6-4.1 on GA media","description":"These are all security issues fixed in the python3-onionshare-2.6-4.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T03:53:21.676197Z","updated_at":"2026-11-02T16:58:36.327643Z"},{"id":"PYSEC-2022-47","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.","status":"published","published":"2022-01-18T20:15:00Z","modified":"2023-11-08T04:08:08.433936Z","updated_at":"2026-11-02T15:52:53.837392Z"}]}}
