CVE-2022-21688
Python vulnerability analysis and mitigation

Overview

OnionShare, an open-source tool for securely sharing files and hosting websites using the Tor network, was found to be vulnerable to a denial of service attack (CVE-2022-21688). The vulnerability was discovered during a penetration test conducted by Radically Open Security between September 26 and October 8, 2021. The issue affects versions prior to 2.5 and involves an undisclosed vulnerability in the QT image parsing component (GitHub Advisory).

Technical details

The vulnerability is classified as an Out-of-bounds Read (CWE-125) with a CVSS 3.1 base score of 7.5 (HIGH). The issue involves image parsing in the QT component where approximately 20 bytes of data can trigger 2GB of memory consumption, and this can be executed multiple times. The vulnerability specifically requires rendering in the history tab, indicating that some user interaction is necessary for exploitation (NVD, GitHub Advisory).

Impact

When exploited, an attacker with knowledge of the Onion service address in public mode or with authentication in private mode can perform a Denial of Service attack. The attack quickly results in out-of-memory conditions for the server, though the impact is considered elevated rather than critical due to the requirement of desktop application usage with rendered history (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in OnionShare version 2.5. The fix includes sanitizing the path parameter in the History item widget to be plain text and various other security improvements (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66423HIGH7.1
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-66454MEDIUM6.5
  • PythonPython
  • arcade-mcp-server
NoYesDec 02, 2025
CVE-2025-66424MEDIUM6.5
  • PythonPython
  • trytond
NoYesNov 30, 2025
CVE-2025-66422MEDIUM4.3
  • PythonPython
  • tryton-server
NoYesNov 30, 2025
CVE-2025-65858LOW3.5
  • PythonPython
  • calibreweb
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management