CVE-2021-41867: Onionshare cli Information Disclosure Vulnerability Vulnerability
MODERATECVE-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
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.
pip install onionshare-cli>=2.4
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
CVE-2021-41867 Affected Onionshare cli Versions
1 component(s)| 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?
Which Onionshare cli versions are affected?
What version fixes CVE-2021-41867?
Is onionshare-cli affected?
What CWE is associated with CVE-2021-41867?
How can I check PyPI dependencies for CVE-2021-41867?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}