CVE-2021-41867: Onionshare cli Information Disclosure Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-6rvj-pw9w-jcvc
CWE-200
Published
Advisory Summary

CVE-2021-41867 is a MODERATE information disclosure vulnerability vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Onionshare cli libraries in the PyPI ecosystem. The issue involves information disclosure vulnerability in onionshare. Remediation is available by upgrading affected packages to version 2.4.

CVE-2021-41867 at a Glance

CVE Identifier CVE-2021-41867
GHSA Identifier GHSA-6rvj-pw9w-jcvc
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Onionshare cli
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2021-41867

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-41867, 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 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. 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

An information disclosure vulnerability in OnionShare 2.3 before 2.4 allows remote unauthenticated attackers to retrieve the full list of participants of a non-public OnionShare node via the --chat feature.

CVE-2021-41867 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-41867?
CVE-2021-41867 is a security vulnerability in Onionshare cli involving Information disclosure vulnerability in OnionShare under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Onionshare cli versions are affected?
Affected versions include releases prior to 2.4 across affected packages: onionshare-cli.
What version fixes CVE-2021-41867?
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 CWE is associated with CVE-2021-41867?
CVE-2021-41867 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check PyPI dependencies for CVE-2021-41867?
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-6rvj-pw9w-jcvc",
  "modified" : "2021-10-13T17:27:56Z",
  "published" : "2021-11-19T20:39:35Z",
  "aliases" : [ "CVE-2021-41867" ],
  "summary" : "Information disclosure vulnerability in OnionShare",
  "details" : "An information disclosure vulnerability in OnionShare 2.3 before 2.4 allows remote unauthenticated attackers to retrieve the full list of participants of a non-public OnionShare node via the --chat feature. ",
  "severity" : [ ],
  "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-41867"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/onionshare/onionshare"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/onionshare/onionshare/compare/v2.3.3...v2.4"
  }, {
    "type" : "WEB",
    "url" : "https://www.ihteam.net/advisory/onionshare"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-10-05T15:16:30Z",
    "nvd_published_at" : "2021-10-04T14:15:00Z"
  }
}