CVE-2021-41868: Onionshare cli Remote Unauthenticated Attackers Able To Vulnerability
CRITICALCVE-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
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).
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.
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-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
CVE-2021-41868 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-41868?
Which Onionshare cli versions are affected?
What version fixes CVE-2021-41868?
Is onionshare-cli affected?
What is the CVSS score of CVE-2021-41868?
What CWE is associated with CVE-2021-41868?
How can I check PyPI dependencies for CVE-2021-41868?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}