Vulnerability · Published Jan 18, 2022 · Assigned by GitHub_M

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

High 7.5

In plain English

A high-severity out-of-bounds read in onionshare from onionshare. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.9%top 41.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIonionshare-cli2.5GHSA-x7wr-283h-5h2v
PyPIonionshare-cli2.5PYSEC-2022-39
Ubuntu:22.04:LTSonionshareno fix listedUBUNTU-CVE-2022-21688

Affected products (as reported)

VendorProductVersions
onionshare onionshare < 2.5

Weakness: CWE-125 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References