Out-of-bounds Read in Onionshare
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-125 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| onionshare | onionshare | before 2.5 | 2.5 | Patch available | CNA |
| — | onionshare-cli (PyPI) | before 2.5 | 2.5 | Patch available | GHSA-x7wr-283h-5h2v |
- onionshare Vendoronionshare Affected before 2.5 Fixed in 2.5 Patch available CNA
- onionshare-cli (PyPI) Vendor— Affected before 2.5 Fixed in 2.5 Patch available GHSA-x7wr-283h-5h2v
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:onionshare:onionshare:*:*:*:*:*:*:*:* | before 2.5 | Vulnerable | onionshare |
- cpe:2.3:a:onionshare:onionshare:*:*:*:*:*:*:*:* Versions before 2.5 Vulnerable ·onionshare
Remediation
- Fix · CNA onionshare (onionshare) Fixed in 2.5
- Fix · GHSA-x7wr-283h-5h2v onionshare-cli (PyPI) Fixed in 2.5 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2022-21688
- 2026-10-03 Alias added: GHSA-x7wr-283h-5h2v
References
Advisory 3
More Onionshare vulnerabilities
- TI-2022-06066 Cross-Site Scripting in Onionshare CVSS 3.1HIGH 8.7
- TI-2022-06068 Improper Access Control in Onionshare CVSS 3.1MEDIUM 4.3
- TI-2021-18479 OnionShare 2.3 before 2.4 allows remote unauthenticated attackers to upload files on a… CVSS 3.1CRITICAL 9.8
- TI-2022-06065 Denial of Service in Onionshare CVSS 3.1HIGH 7.5
- TI-2022-06069 Path traversal in Onionshare CVSS 3.1MEDIUM 6.5
- TI-2018-14146 The debug_mode function in web/web.py in OnionShare through 1.3.1, when --debug is… CVSS 3.0HIGH 7.0
Sources
- CVE-2022-21688 · CVE Program
- CVE-2022-21688 · NVD
- FIRST EPSS
- GHSA-x7wr-283h-5h2v · GitHub Advisory Database · CC BY 4.0
- CVE-2022-21688 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences