Read the docs
TI-2022-07581 Aliases CVE-2022-23522GHSA-7x45-phmr-9wqp

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

Priority HIGH 71CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00883 59th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed mindsdb (mindsdb): 22.11.4.3mindsdb (PyPI): 22.11.4.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
mindsdbmindsdbbefore 22.11.4.322.11.4.3Patch availableCNA
—mindsdb (PyPI)before 22.11.4.322.11.4.3Patch availableGHSA-7x45-phmr-9wqp
  • mindsdb Vendormindsdb Affected before 22.11.4.3 Fixed in 22.11.4.3 Patch available CNA
  • mindsdb (PyPI) Vendor— Affected before 22.11.4.3 Fixed in 22.11.4.3 Patch available GHSA-7x45-phmr-9wqp

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:mindsdb:mindsdb:*:*:*:*:*:*:*:*before 22.11.4.3Vulnerablemindsdb
  • cpe:2.3:a:mindsdb:mindsdb:*:*:*:*:*:*:*:* Versions before 22.11.4.3 Vulnerable ·mindsdb

Remediation

  • Fix · CNA mindsdb (mindsdb) Fixed in 22.11.4.3
  • Fix · GHSA-7x45-phmr-9wqp mindsdb (PyPI) Fixed in 22.11.4.3 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-23522
  2. 2026-10-03 Alias added: GHSA-7x45-phmr-9wqp

References

  • TI-2024-16276 MindsDB Vulnerable to Bypass of SSRF Protection with DNS Rebinding CVSS 3.1CRITICAL 9.3
  • TI-2026-21890 MindsDB has Path Traversal in /api/files Leading to Remote Code Execution CVSS 3.1HIGH 8.8
  • TI-2024-30805 Code injection in mindsdb CVSS 3.1HIGH 8.8
  • TI-2024-30804 Code injection in mindsdb CVSS 3.1HIGH 8.8
  • TI-2024-30803 Code injection in mindsdb CVSS 3.1HIGH 8.8
  • TI-2024-30802 Code injection in mindsdb CVSS 3.1HIGH 8.8
See all 21 →

Sources