Arbitrary File Write when Extracting Tarballs retrieved from a remote location using in mindsdb
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| mindsdb | mindsdb | before 22.11.4.3 | 22.11.4.3 | Patch available | CNA |
| — | mindsdb (PyPI) | before 22.11.4.3 | 22.11.4.3 | Patch available | GHSA-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
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
- 2026-10-02 Threatist record created from CVE-2022-23522
- 2026-10-03 Alias added: GHSA-7x45-phmr-9wqp
References
Other 5
- https://github.com/mindsdb/mindsdb
- https://github.com/mindsdb/mindsdb/blob/69c76e727b8067f32b06ab83bb835a8c416c4f21/mindsdb/interfaces/storage/fs.py
- https://github.com/mindsdb/mindsdb/blob/69c76e727b8067f32b06ab83bb835a8c416c4f21/mindsdb/interfaces/storage/fs.py#L128..L129
- https://github.com/mindsdb/mindsdb/releases/tag/v22.11.4.3
- https://github.com/pypa/advisory-database/tree/main/vulns/mindsdb/PYSEC-2023-26.yaml
More Mindsdb vulnerabilities
- 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
Sources
- CVE-2022-23522 · CVE Program
- CVE-2022-23522 · NVD
- FIRST EPSS
- GHSA-7x45-phmr-9wqp · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences