CVE-2022-23522
HIGH 8.8CVSS 3.1Arbitrary file write in mindsdb when Extracting Tarballs retrieved from a remote location
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.
- Published
- 30 Mar 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-7x45-phmr-9wqpPYSEC-2023-26
- Sources
- NVDJSONOSV GHSA-7x45-phmr-9wqpJSONOSV PYSEC-2023-26JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mindsdb | mindsdbcpe:2.3:a:mindsdb:mindsdb:*:*:*:*:*:*:*:* |
< 22.11.4.3 | 22.11.4.3 |
| OSV | PyPI | mindsdb | < 22.11.4.3 | 22.11.4.3 |
References
- https://github.com/mindsdb/mindsdb/security/advisories/GHSA-7x45-phmr-9wqp · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-23522 · ADVISORY
- https://github.com/mindsdb/mindsdb · PACKAGE
- https://github.com/mindsdb/mindsdb/blob/69c76e727b8067f32b06ab83bb835a8c416c4f21/mindsdb/interfaces/storage/fs.py · WEB
- https://github.com/mindsdb/mindsdb/blob/69c76e727b8067f32b06ab83bb835a8c416c4f21/mindsdb/interfaces/storage/fs.py#L128..L129 · WEB
- https://github.com/mindsdb/mindsdb/releases/tag/v22.11.4.3 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/mindsdb/PYSEC-2023-26.yaml · WEB
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 30 Mar 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 30 Mar 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 30 Mar 2023)