Skip to content

CVE-2022-21693 Path traversal in Onionshare

MediumCVSS 6.5 EPSS 1.2%
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 an adversary with a primitive that allows for filesystem access from the context of the Onionshare process can access sensitive files in the entire user home folder. This could lead to the leaking of sensitive data. Due to the automatic exclusion of hidden folders, the impact is reduced. This can be mitigated by usage of the flatpak release.

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.3, < 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.3, < 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