CVE-2022-23522
CVSS V2 None
CVSS V3 None
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.
Overview
- CVE ID
- CVE-2022-23522
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2023-03-30T19:15:06
- Last Modified Date
- 2023-04-10T16:22:11
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:mindsdb:mindsdb:*:*:*:*:*:*:*:* | 1 | OR | 22.11.4.3 |
References
Reference URL | Reference Tags |
---|---|
https://github.com/mindsdb/mindsdb/security/advisories/GHSA-7x45-phmr-9wqp | Exploit Vendor Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2022-23522 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-23522 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2023-04-17 03:55:35 | Added to TrackCVE | |||
2023-04-17 03:55:37 | Weakness Enumeration | new |