CVE-2018-19960: Withdrawn Advisory OnionShare Predictable Pathname Vulnerability

HIGH
Advisory Identifier: GHSA-pwjq-6wrh-5w8q
CVSS 7.0
CWE-20
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2018-19960
GHSA Identifier GHSA-pwjq-6wrh-5w8q
Severity HIGH
CVSS v3.1 Base Score 7.0
CWE Classification CWE-20: Improper Input Validation
Affected Product Withdrawn Advisory
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Local (AV:L)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
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-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.

onionshare-cli fixed: Latest secure release
pip install onionshare-cli>=Latest secure release
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-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

## Withdrawn Advisory This 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. ## Original Description The `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.

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?
CVE-2018-19960 is a security vulnerability in Withdrawn Advisory involving OnionShare Predictable Pathname under CWE-20: Improper Input Validation.
Which Withdrawn Advisory versions are affected?
Affected versions include releases prior to current release patches across affected packages: onionshare-cli.
What version fixes CVE-2018-19960?
Upgrading to current release patches (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 Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2018-19960?
CVE-2018-19960 has a CVSS v3.1 base score of 7.0 (HIGH) with vector string CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2018-19960?
CVE-2018-19960 is classified under CWE-20: Improper Input Validation (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.).
How can I check PyPI dependencies for CVE-2018-19960?
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-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"
  }
}