CVE-2022-21688 json
Out-of-bounds Read in Onionshare
published 2022-01-18 4 y ago modified 2026-06-17 4 mo ago also GHSA-x7wr-283h-5h2v , PYSEC-2022-39 , EUVD-2022-0179
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi onionshare-cli 2.5
- onionshare onionshare 2.5
- python-onionshare openSUSE Tumbleweed 2.5-1.1
- python3-onionshare openSUSE Tumbleweed 2.6-4.1
opensuse advisories openSUSE-SU-2024:11983-1openSUSE-SU-2024:13635-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-21688 updated cvss 5.5
onionshare: a DoS which quickly results in out-of-memory for the server
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.86% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | onionshare-cli | <2.5 |
2.5 |
Affected products
- onionshare onionshare
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
github.com
/onionshare/onionshare/releases/tag/v2.5
web, release-notes, third-party-advisory
-
github.com
/onionshare/onionshare/security/advisories/GHSA-x7wr-283h-5h2v
web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-21688
advisory
-
github.com
/onionshare/onionshare
package
-
github.com
/pypa/advisory-database/tree/main/vulns/onionshare-cli/PYSEC-2022-39.yaml
web
Sources
- CVE List CVE-2022-21688
- GitHub Advisory GHSA-x7wr-283h-5h2v
- NVD CVE-2022-21688
- OSV PYSEC-2022-39
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.