Live threats

All CVEs / Onionshare

CVE-2022-21688Onionshare

Medium 5.5

Priority
33
CVSS 3.1
5.5
EPSS
0.9%
probability of exploitation in 30 days · percentile 58
Auth required
Yes
Published
Jan 18, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-125
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Onionshare.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI onionshare-cli < 2.5 2.5 pip install "onionshare-cli>=2.5"
PyPI onionshare-cli < 2.5 2.5 pip install "onionshare-cli>=2.5"

Per OSV / GitHub Advisories (GHSA-x7wr-283h-5h2v, PYSEC-2022-39). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
onionshareonionshare< 2.5

Official sources

References

Links published by the sources. Open them with care.