{"id":"CVE-2022-21688","aliases":["CVE-2022-21688","GHSA-x7wr-283h-5h2v","PYSEC-2022-39"],"related":[],"kind":"vulnerability","state":"published","title":"Out-of-bounds Read in Onionshare","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Between September 26, 2021 and October 8, 2021, [Radically Open Security](https://www.radicallyopensecurity.com/) conducted a penetration test of OnionShare 2.4, funded by the Open Technology Fund's [Red Team lab](https://www.opentech.fund/labs/red-team-lab/). This is an issue from that penetration test.\n\n- Vulnerability ID: OTF-014\n- Vulnerability type: Out-of-bounds Read\n- Threat level: Elevated\n\n## Description:\n\nThe desktop application was found to be vulnerable to denial of service via an undisclosed vulnerability in the QT image parsing.\n\n## Technical description:\n\nPrerequisites:\n\n- Onion address is known\n- Public service or authentication is valid\n- Desktop application is used\n- History is displayed\n\nThe rendering of images found in OTF-001 (page 25) could be elevated to a Denial of Service, which requires only very few bytes to be sent as a path parameter to any of the Onionshare functions. 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. The issue is in the process of disclosure to the QT security mailing list. More details will be provided after a fixed QT build has been deployed.\n\n## Impact:\n\nAn 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.\n\n## Recommendation:\n\n- Monitor for upstream fix\n- Fix OTF-001 (page 25) as a workaround","format":"markdown","source":"ghsa"},{"lang":"es","text":"OnionShare es una herramienta de código abierto que permite compartir archivos, alojar sitios web y chatear con amigos de forma segura y anónima usando la red Tor. Se ha detectado que las versiones afectadas de la aplicación de escritorio son vulnerables a una denegación de servicio por medio de una vulnerabilidad no revelada en el análisis de imágenes QT. Aproximadamente 20 bytes conllevan a un consumo de memoria de 2GB y esto puede desencadenarse múltiples veces. Para ser abusada, esta vulnerabilidad requiere la renderización en la pestaña del historial, por lo que es requerido alguna interacción del usuario. Un adversario con conocimiento de la dirección del servicio de Onion en modo público o con autenticación en modo privado puede llevar a cabo un ataque de denegación de servicio, que rápidamente resulta en el agotamiento de la memoria del servidor. Esto requiere la aplicación de escritorio con el historial renderizado, por lo que el impacto es sólo elevado. Este problema ha sido parcheado en la versión 2.5","source":"nvd"}],"published":"2022-01-18T21:45:11.000Z","modified":"2026-06-17T04:26:45.977Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"version":"< 2.5","status":"affected"}],"vendor":"onionshare","product":"onionshare","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.5"}],"ecosystem":"PyPI","package":"onionshare-cli","purl":"pkg:pypi/onionshare-cli","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.5"}],"vendor":"onionshare","product":"onionshare","cpe":"cpe:2.3:a:onionshare:onionshare:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.5"}],"ecosystem":"PyPI","package":"onionshare-cli","purl":"pkg:pypi/onionshare-cli","source":"pysec"}],"references":[{"url":"https://github.com/onionshare/onionshare/releases/tag/v2.5","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/onionshare/onionshare/security/advisories/GHSA-x7wr-283h-5h2v","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21688","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/onionshare/onionshare","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/onionshare-cli/PYSEC-2022-39.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-04-23T15:58:10.950Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-21688","url":"https://www.cve.org/CVERecord?id=CVE-2022-21688","licence":"CVE Terms of Use","modified":"2025-04-23T19:10:53.388Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x7wr-283h-5h2v","url":"https://github.com/advisories/GHSA-x7wr-283h-5h2v","licence":"CC-BY-4.0","modified":"2024-10-08T13:00:20.618Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-21688","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-21688","licence":"Public domain","modified":"2026-06-17T04:26:45.977Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-39","url":"https://osv.dev/vulnerability/PYSEC-2022-39","licence":"CC-BY-4.0","modified":"2023-11-08T04:08:07.943Z"}],"updatedAt":"2026-11-25T22:58:09.271Z","epss":{"score":0.00889,"percentile":0.60412,"date":"2026-12-01T12:00:22.000Z"}}