High severity · published Mar 30, 2023
CVE-2022-23522
MindsDB is an open source machine learning platform
8.8
CVSS
0.9%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 59% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MI
Mindsdb · Mindsdb
before 22.11.4.3 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-23522
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-23522
Exploit
https://github.com/mindsdb/mindsdb/security/advisories/GHSA-7x45-phmr-9wqp
More from Mindsdb
9.1
CVE-2025-68472
MindsDB is a platform for building artificial intelligence from enterprise data
9.1
CVE-2024-24759
MindsDB Vulnerable to Bypass of SSRF Protection with DNS Rebinding
9.1
CVE-2023-50731
MindsDB is a SQL Server for artificial intelligence
8.8
CVE-2026-92207
MindsDB OpenBBtable Code Injection Remote Code Execution Vulnerability
8.8
CVE-2026-27483
MindsDB is a platform for building artificial intelligence from enterprise data
