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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.89%, higher than 60% of CVEs (2026-12-01)
- Published: 2022-01-18T21:45:11.000Z
- Modified: 2026-06-17T04:26:45.977Z
- Also known as: GHSA-x7wr-283h-5h2v, PYSEC-2022-39
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- onionshare onionshare: < 2.5; before 2.5
- onionshare-cli (PyPI): before 2.5

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/onionshare/onionshare/releases/tag/v2.5> (release-notes, third-party-advisory, web)
- <https://github.com/onionshare/onionshare/security/advisories/GHSA-x7wr-283h-5h2v> (advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21688> (advisory)
- <https://github.com/onionshare/onionshare> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/onionshare-cli/PYSEC-2022-39.yaml> (web)

## Sources

- CVE List: [CVE-2022-21688](https://www.cve.org/CVERecord?id=CVE-2022-21688), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-x7wr-283h-5h2v](https://github.com/advisories/GHSA-x7wr-283h-5h2v), CC-BY-4.0, modified 2024-10-08
- NVD: [CVE-2022-21688](https://nvd.nist.gov/vuln/detail/CVE-2022-21688), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-39](https://osv.dev/vulnerability/PYSEC-2022-39), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2022-21688 · Whole record: https://cve.day/CVE-2022-21688.json · Rebuilt by cve.day 2026-11-25T22:58:09.271Z
