CVE-2021-41868
Python vulnerability analysis and mitigation

Overview

OnionShare 2.3 before version 2.4 contains a vulnerability that allows remote unauthenticated attackers to upload files on a non-public node when using the --receive functionality. The vulnerability, tracked as CVE-2021-41868, was discovered in October 2021 and affects the file sharing capabilities of the OnionShare platform, which is designed for secure and anonymous file sharing over the Tor network (IHTeam Blog, Debian Tracker).

Technical details

The vulnerability exists in the receive_mode.py file of OnionShare, where the application initiates the upload process before checking for Flask HTTPAuth. This implementation flaw allows attackers to bypass the Basic Authorization that is normally required in non-public mode, where the system generates a random username and password at startup (IHTeam Blog).

Impact

The vulnerability allows unauthorized users to upload files to OnionShare instances that are configured in non-public mode, effectively bypassing the authentication mechanism. This poses a significant security risk as it undermines the platform's access control system, particularly concerning for journalists and users in oppressed countries who rely on OnionShare for secure file sharing (IHTeam Blog).

Mitigation and workarounds

The vulnerability has been fixed in OnionShare version 2.4. Users running affected versions (2.3 through 2.3.3) should upgrade to version 2.4 or later to protect against unauthorized file uploads. The fix was implemented by properly enforcing authentication checks before allowing file uploads (Debian Tracker).

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-67511CRITICAL9.6
  • PythonPython
  • cai-framework
NoNoDec 11, 2025
CVE-2025-13780CRITICAL9.1
  • PythonPython
  • pgadmin4
NoYesDec 11, 2025
CVE-2025-67644HIGH7.3
  • PythonPython
  • langgraph-checkpoint-sqlite
NoYesDec 11, 2025
CVE-2025-67720MEDIUM6.5
  • PythonPython
  • pyrofork
NoYesDec 11, 2025
CVE-2025-67485MEDIUM5.3
  • PythonPython
  • mad-proxy
NoNoDec 10, 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