{"cve":"CVE-2022-23522","nvd":{"published":"2023-03-30T19:15:06.353","modified":"2026-06-17T04:30:17.550","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-22"],"references":["https://github.com/mindsdb/mindsdb/security/advisories/GHSA-7x45-phmr-9wqp","https://github.com/mindsdb/mindsdb/security/advisories/GHSA-7x45-phmr-9wqp"],"products":["mindsdb:mindsdb"],"source":"nvd","synced_at":"2026-10-19T21:37:48.383111019+00:00"},"epss":{"cve":"CVE-2022-23522","score":0.00883,"percentile":0.59191,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-7x45-phmr-9wqp","url":"https://osv.dev/vulnerability/GHSA-7x45-phmr-9wqp","summary":"Arbitrary file write in mindsdb when Extracting Tarballs retrieved from a remote location ","modified":"2024-10-01T19:36:05.860889Z","packages":[{"ecosystem":"PyPI","name":"mindsdb","purl":"pkg:pypi/mindsdb","ranges":["<22.11.4.3"],"fixed":["22.11.4.3"]}]},{"id":"PYSEC-2023-26","url":"https://osv.dev/vulnerability/PYSEC-2023-26","summary":"","modified":"2023-11-08T04:08:20.678186Z","packages":[{"ecosystem":"PyPI","name":"mindsdb","purl":"pkg:pypi/mindsdb","ranges":["<22.11.4.3"],"fixed":["22.11.4.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}