CVE-2018-19960: Withdrawn Advisory OnionShare Predictable Pathname Vulnerability
HIGHCVE-2018-19960 is a HIGH (CVSS 7.0) onionshare predictable pathname vulnerability (CWE-20: Improper Input Validation) affecting Withdrawn Advisory libraries in the PyPI ecosystem. The issue involves onionshare predictable pathname. Remediation is available in the latest vendor maintenance releases.
CVE-2018-19960 at a Glance
Security Impact
CVSS: 7.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2018-19960
To remediate this vulnerability, upgrade all affected Withdrawn Advisory 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>=Latest secure release
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-2018-19960, inspect your installed packages using pip:
pip show onionshare-cli
Analyze the terminal output to locate any version of Withdrawn Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Withdrawn Advisory, 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-2018-19960 Affected Withdrawn Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
onionshare-cli
|
PyPI |
≤ 1.3.1
|
|
References
Frequently Asked Questions
What is CVE-2018-19960?
Which Withdrawn Advisory versions are affected?
What version fixes CVE-2018-19960?
Is onionshare-cli affected?
What is the CVSS score of CVE-2018-19960?
What CWE is associated with CVE-2018-19960?
How can I check PyPI dependencies for CVE-2018-19960?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pwjq-6wrh-5w8q",
"modified" : "2023-10-09T00:43:44Z",
"published" : "2022-05-14T01:36:38Z",
"withdrawn" : "2023-10-09T00:43:44Z",
"aliases" : [ "CVE-2018-19960" ],
"summary" : "Withdrawn Advisory: OnionShare Predictable Pathname",
"details" : "## Withdrawn Advisory\nThis advisory has been withdrawn because the advisory concerns the repository https://github.com/onionshare/onionshare, which is not in a [supported ecosystem](https://github.com/github/advisory-database/blob/main/README.md#supported-ecosystems). [onionshare-cli](https://pypi.org/project/onionshare-cli/) is not affected by this issue.\n\n## Original Description\nThe `debug_mode` function in `web/web.py` in OnionShare through 1.3.1, when `--debug` is enabled, uses the `/tmp/onionshare_server.log` pathname for logging, which might allow local users to overwrite files or obtain sensitive information by using this pathname.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "onionshare-cli"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-19960"
}, {
"type" : "WEB",
"url" : "https://github.com/onionshare/onionshare/issues/837"
}, {
"type" : "WEB",
"url" : "https://github.com/onionshare/onionshare/commit/4da5e15581a69509e7bfc6c4d0742052e0b61b24"
}, {
"type" : "WEB",
"url" : "https://github.com/onionshare/onionshare/commit/aa5fdde6a4e4de7f113e01a3b446dcc14dcecb1a"
}, {
"type" : "WEB",
"url" : "https://bugs.debian.org/915859"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/onionshare/onionshare"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-07-24T22:17:36Z",
"nvd_published_at" : "2018-12-07T16:29:00Z"
}
}