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

CVE-2022-21688 · Severity: low · CVSS 3.1 · Published 2022-01-18

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.

Technologies: onionshare-cli (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2022-21688 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-21688 being exploited in the wild.
How severe is CVE-2022-21688?
Low severity, with a CVSS score of 3.1, published 18 January 2022.
Which products and versions are affected?
onionshare-cli (PyPI) ECOSYSTEM:introduced=0,fixed=2.5.
Is there a fix for CVE-2022-21688?
Yes. onionshare-cli (PyPI): upgrade to 2.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2022-21688?
Check whether you run onionshare-cli (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • onionshare-cli (PyPI): upgrade to 2.5 or later
    pip install "onionshare-cli>=2.5"

Affected products

  • onionshare-cli (PyPI) ECOSYSTEM:introduced=0,fixed=2.5

Identifiers

  • CVE-2022-21688
  • GHSA-x7wr-283h-5h2v
  • PYSEC-2022-39

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.