Skip to content
Heist/ feed
Back to feed
High

Arbitrary File Write when Extracting Tarballs retrieved from a remote location using in mindsdb

Type: advisorySources: OSV

MindsDB is an open source machine learning platform. An unsafe extraction is being performed using `shutil.unpack_archive()` from a remotely retrieved tarball. Which may lead to the writing of the extracted files to an unintended location. This vulnerability is sometimes called a **TarSlip** or a **ZipSlip variant**. Unpacking files using the high-level function `shutil.unpack_archive()` from a potentially malicious tarball without validating that the destination file path remained within the intended destination directory may cause files to be overwritten outside the destination directory. An attacker could craft a malicious tarball with a filename path, such as `../../../../../../../../etc/passwd`, and then serve the archive remotely using a personal bucket `s3`, thus, retrieve the tarball through **mindsdb** and overwrite the system files of the hosting server. This issue has been addressed in version 22.11.4.3. Users are advised to upgrade. Users unable to upgrade should avoid ingesting archives from untrusted sources.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-23522
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 12:18 UTC · Revision 1

Source evidence

Arbitrary File Write when Extracting Tarballs retrieved from a remote location using in mindsdb

core-osv · Original source

Published 30 Mar 2023, 18:04 UTC

MindsDB is an open source machine learning platform. An unsafe extraction is being performed using `shutil.unpack_archive()` from a remotely retrieved tarball. Which may lead to the writing of the extracted files to an unintended location. This vulnerability is sometimes called a **TarSlip** or a **ZipSlip variant**. Unpacking files using the high-level function `shutil.unpack_archive()` from a potentially malicious tarball without validating that the destination file path remained within the intended destination directory may cause files to be overwritten outside the destination directory. An attacker could craft a malicious tarball with a filename path, such as `../../../../../../../../etc/passwd`, and then serve the archive remotely using a personal bucket `s3`, thus, retrieve the tarball through **mindsdb** and overwrite the system files of the hosting server. This issue has been addressed in version 22.11.4.3. Users are advised to upgrade. Users unable to upgrade should avoid ingesting archives from untrusted sources.

osv:CVE-2022-23522
Complete source record
{
  "id": "5d7d645d2887ded50f58c9a8fb0ffbb5086037c35705f609763126aeef73e63e",
  "url": "https://osv.dev/vulnerability/CVE-2022-23522",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Arbitrary File Write when Extracting Tarballs retrieved from a remote location using in mindsdb",
    "summary": "MindsDB is an open source machine learning platform. An unsafe extraction is being performed using `shutil.unpack_archive()` from a remotely retrieved tarball. Which may lead to the writing of the extracted files to an unintended location. This vulnerability is sometimes called a **TarSlip** or a **ZipSlip variant**. Unpacking files using the high-level function `shutil.unpack_archive()` from a potentially malicious tarball without validating that the destination file path remained within the intended destination directory may cause files to be overwritten outside the destination directory. An attacker could craft a malicious tarball with a filename path, such as `../../../../../../../../etc/passwd`, and then serve the archive remotely using a personal bucket `s3`, thus, retrieve the tarball through **mindsdb** and overwrite the system files of the hosting server. This issue has been addressed in version 22.11.4.3. Users are advised to upgrade. Users unable to upgrade should avoid ingesting archives from untrusted sources.",
    "evidence": "osv:CVE-2022-23522",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2022-23522",
      "aliases": [
        "CVE-2022-23522",
        "GHSA-7x45-phmr-9wqp",
        "PYSEC-2023-26"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mindsdb/mindshub",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "980d793902b0a4e8c60f33352dd39c2e7e96f510"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "22.11.4.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:mindsdb:mindsdb:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "22.11.4.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v22.11.4.2",
            "v22.11.4.1",
            "v22.11.4.0",
            "v22.5.1.2",
            "v2.45.2",
            "v2.45.1",
            "v2.45.0",
            "v2.44.0",
            "v2.43.0",
            "v2.42.2",
            "v2.42.1",
            "v2.42.0",
            "v2.41.2",
            "v2.41.1",
            "v2.41.0",
            "v2.40.0",
            "v2.39.0",
            "2.38.0",
            "2.37.0",
            "2.36.0v2",
            "2.36.0",
            "v2.35.0",
            "2.33.0",
            "2.31.0",
            "v2.30.1",
            "2.30.0",
            "v2.27.0",
            "v2.26.0",
            "2.21.2",
            "2.21.1",
            "2.21.0",
            "2.20.1",
            "v2.17.1",
            "v2.15.0",
            "v2.14.0",
            "2.14.0",
            "v2.11.2",
            "v2.11.1",
            "v2.11.0",
            "v2.10.2",
            "v2.10.0",
            "v2.9.1",
            "v2.9.0",
            "v2.8.3",
            "v2.8.1",
            "v2.8.0",
            "v2.7.2",
            "v2.7.1",
            "v2.7.0",
            "v2.6.1",
            "v2.6.0",
            "v2.5.0",
            "v2.4.0",
            "v2.3.0",
            "v2.2.1",
            "v2.2.0",
            "v2.1.2",
            "v2.1.1",
            "v2.1.0",
            "v2.0.0",
            "v1.0.6",
            "v0.8.9.1",
            "v0.8.8"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23522.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.837039078Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23522.json",
        "https://github.com/mindsdb/mindsdb/security/advisories/GHSA-7x45-phmr-9wqp",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-23522"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23522.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-23522",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519261,
  "published_at": "2023-03-30T18:04:56.599+00:00"
}