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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | onionshare-cli | 2.5 | GHSA-x7wr-283h-5h2v |
| PyPI | onionshare-cli | 2.5 | PYSEC-2022-39 |
| Ubuntu:22.04:LTS | onionshare | no fix listed | UBUNTU-CVE-2022-21688 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/onionshare/onionshare/releases/tag/v2.5 x_refsource_MISC
- https://github.com/onionshare/onionshare/security/advisories/GHSA-x7wr-283h-5h2v x_refsource_CONFIRM