CVE-2021-41868: Onionshare cli Remote Unauthenticated Attackers Able To Vulnerability

CRITICAL
Advisory Identifier: GHSA-7g47-xxff-9p85
CVSS 9.8
Published
Advisory Summary

CVE-2021-41868 is a CRITICAL (CVSS 9.8) remote unauthenticated attackers able to vulnerability (General Security Weakness) affecting Onionshare cli libraries in the PyPI ecosystem. The issue involves remote unauthenticated attackers able to upload files in onionshare. Remediation is available by upgrading affected packages to version 2.4.

CVE-2021-41868 at a Glance

CVE Identifier CVE-2021-41868
GHSA Identifier GHSA-7g47-xxff-9p85
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification General Security Weakness
Affected Product Onionshare cli
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 9.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2021-41868

To remediate this vulnerability, upgrade all affected Onionshare cli dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

onionshare-cli fixed: 2.4
pip install onionshare-cli>=2.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show onionshare-cli

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2021-41868, inspect your installed packages using pip:

pip show onionshare-cli

Analyze the terminal output to locate any version of Onionshare cli in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4), your application is affected.

Note: The pip show onionshare-cli command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Onionshare cli, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

OnionShare 2.3 before 2.4 allows remote unauthenticated attackers to upload files on a non-public node when using the --receive functionality.

CVE-2021-41868 Affected Onionshare cli Versions

1 component(s)
Fixed Versions:
2.4
Product / Package Ecosystem Affected Versions Fixed Version
onionshare-cli
PyPI
≥ 2.3
< 2.4
2.4

References

Frequently Asked Questions

What is CVE-2021-41868?
CVE-2021-41868 is a security vulnerability in Onionshare cli involving Remote unauthenticated attackers able to upload files in Onionshare under General Security Weakness.
Which Onionshare cli versions are affected?
Affected versions include releases prior to 2.4 across affected packages: onionshare-cli.
What version fixes CVE-2021-41868?
Upgrading to 2.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is onionshare-cli affected?
Yes, onionshare-cli is affected in releases prior to 2.4. Upgrade your dependency to 2.4 or later.
What is the CVSS score of CVE-2021-41868?
CVE-2021-41868 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2021-41868?
CVE-2021-41868 is classified under General Security Weakness.
How can I check PyPI dependencies for CVE-2021-41868?
Run the dependency tree command: 'pip show onionshare-cli'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-7g47-xxff-9p85",
  "modified" : "2021-10-13T17:28:16Z",
  "published" : "2021-11-19T20:39:44Z",
  "aliases" : [ "CVE-2021-41868" ],
  "summary" : "Remote unauthenticated attackers able to upload files in Onionshare",
  "details" : "OnionShare 2.3 before 2.4 allows remote unauthenticated attackers to upload files on a non-public node when using the --receive functionality. ",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "onionshare-cli"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3"
      }, {
        "fixed" : "2.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-41868"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/onionshare/onionshare/issues/1396"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/onionshare/onionshare/pull/1404"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/onionshare/onionshare"
  }, {
    "type" : "WEB",
    "url" : "https://www.ihteam.net/advisory/onionshare"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-10-05T15:16:37Z",
    "nvd_published_at" : "2021-10-04T14:15:00Z"
  }
}