Skip to content

CVE-2022-21688 Out-of-bounds Read in Onionshare

MediumCVSS 5.5 EPSS 0.89%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
Ubuntu

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. Affected versions of the desktop application were found to be vulnerable to denial of service via an undisclosed vulnerability in the QT image parsing. Roughly 20 bytes lead to 2GB memory consumption and this can be triggered multiple times. To be abused, this vulnerability requires rendering in the history tab, so some user interaction is required. An adversary with knowledge of the Onion service address in public mode or with authentication in private mode can perform a Denial of Service attack, which quickly results in out-of-memory for the server. This requires the desktop application with rendered history, therefore the impact is only elevated. This issue has been patched in version 2.5.

Upgrade path

4 packages: 2 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/onionshare(Ubuntu 22.04) = 2.2-3; All versions No fix listed No fix yet
ubuntu/onionshare(Ubuntu Pro 20.04) = 2.1-1; = 2.2-1; = 2.2-1ubuntu0.1~esm1; All versions No fix listed No fix yet
onionshare < 2.5; = < 2.5 2.5 Fixed
pypi onionshare-cli(PyPI) < 2.5; = 2.3; = 2.3.1; = 2.3.2 +1 more 2.5 Fixed

Affected products

ProductAffected versionsFixed in
pypi onionshare-cli(PyPI) < 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
onionshare = < 2.5 No fix listed
ubuntu/onionshare(Ubuntu:22.04) All versions No fix listed
onionshare < 2.5 2.5
ubuntu/onionshare(Ubuntu:Pro:20.04) All versions No fix listed
ubuntu/onionshare(Ubuntu:Pro:20.04) = 2.1-1 No fix listed
ubuntu/onionshare(Ubuntu:Pro:20.04) = 2.2-1 No fix listed
ubuntu/onionshare(Ubuntu:Pro:20.04) = 2.2-1ubuntu0.1~esm1 No fix listed
ubuntu/onionshare(Ubuntu:22.04) = 2.2-3 No fix listed

References