SCA: security update for mindsdb (GHSA-7x45-phmr-9wqp)

medium Tenable Cloud Security Plugin ID 412324

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2022-23522)

See Also

https://github.com/advisories/GHSA-7x45-phmr-9wqp

Plugin Details

Severity: Medium

ID: 412324

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.58

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 7

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C

CVSS Score Source: CVE-2022-23522

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.9

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

CVSS v4

Risk Factor: Medium

Base Score: 6.3

Threat Score: 5.2

Threat Vector: CVSS:4.0/E:P

Vector: 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

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/30/2023

Vulnerability Publication Date: 3/30/2023

Reference Information

CVE: CVE-2022-23522

cwe: CWE-22