Skip to content
Heist/ feed
Back to feed
Medium

Path traversal in Onionshare

Type: advisorySources: OSV

OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor network. In affected versions an adversary with a primitive that allows for filesystem access from the context of the Onionshare process can access sensitive files in the entire user home folder. This could lead to the leaking of sensitive data. Due to the automatic exclusion of hidden folders, the impact is reduced. This can be mitigated by usage of the flatpak release.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-21693
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 16:26 UTC · Revision 1

Source evidence

Path traversal in Onionshare

core-osv · Original source

Published 18 Jan 2022, 22:03 UTC

OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor network. In affected versions an adversary with a primitive that allows for filesystem access from the context of the Onionshare process can access sensitive files in the entire user home folder. This could lead to the leaking of sensitive data. Due to the automatic exclusion of hidden folders, the impact is reduced. This can be mitigated by usage of the flatpak release.

osv:CVE-2022-21693
Complete source record
{
  "id": "e7bb03f03b0edc464aefa609361b36706037c48feef2112ed0c4d5749a7560e3",
  "url": "https://osv.dev/vulnerability/CVE-2022-21693",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Path traversal in Onionshare",
    "summary": "OnionShare is an open source tool that lets you securely and anonymously share files, host websites, and chat with friends using the Tor network. In affected versions an adversary with a primitive that allows for filesystem access from the context of the Onionshare process can access sensitive files in the entire user home folder. This could lead to the leaking of sensitive data. Due to the automatic exclusion of hidden folders, the impact is reduced. This can be mitigated by usage of the flatpak release.",
    "evidence": "osv:CVE-2022-21693",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-21693",
      "aliases": [
        "CVE-2022-21693",
        "GHSA-jgm9-xpfj-4fq6",
        "PYSEC-2022-44"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/onionshare/onionshare",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c5fd1cb7103c3ea5c4b7436ea197a4a64f04178b"
                },
                {
                  "fixed": "6642c25959f14daeb4a572798ccf4acd765d5795"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6642c25959f14daeb4a572798ccf4acd765d5795"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v2.5"
                  },
                  {
                    "cpe": "cpe:2.3:a:onionshare:onionshare:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3"
                      },
                      {
                        "fixed": "2.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.4.dev1",
            "v2.3.2",
            "v2.3.2.dev1",
            "v2.3.1",
            "v2.3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-21693.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:21.070586929Z",
      "provider": "osv",
      "references": [
        "https://github.com/onionshare/onionshare/releases/tag/v2.5",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21693.json",
        "https://github.com/onionshare/onionshare/security/advisories/GHSA-jgm9-xpfj-4fq6",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-21693"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/21xxx/CVE-2022-21693.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-21693",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 487111,
  "published_at": "2022-01-18T22:03:54+00:00"
}