Home » Database

AVID-2026-R0962

Description

Arbitrary File Write when Extracting Tarballs retrieved from a remote location using in mindsdb (CVE-2022-23522)

Details

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.

Reason for inclusion in AVID: CVE-2022-23522 describes a TarSlip-like path traversal vulnerability in MindsDB’s unsafe extraction of remote tarballs via shutil.unpack_archive, allowing arbitrary file writes. This is a software vulnerability impacting an AI platform used in ML pipelines, i.e., a component in the AI software stack. It affects the supply chain of general-purpose AI systems when ingesting external archives, and there is clear CVE evidence and remediation guidance. Therefore it satisfies AI relevance, supply-chain scope, security impact, and evidence sufficiency.

References

Affected or Relevant Artifacts

  • Developer: mindsdb
  • Deployer: mindsdb
  • Artifact Details:
TypeName
Systemmindsdb

Impact

AVID Taxonomy Categorization

  • Risk domains: Security
  • SEP subcategories: S0100: Software Vulnerability
  • Lifecycle stages: L06: Deployment

CVSS

Version3.1
Vector StringCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
Base Score8.5
Base Severity🔴 High
Attack VectorNETWORK
Attack Complexity🟢 Low
Privileges Required🟢 Low
User InteractionNONE
ScopeCHANGED
Confidentiality Impact🔴 High
Integrity Impact🟢 Low
Availability ImpactNONE

CWE

IDDescription
CWE-22CWE-22: Improper Limitation of a Pathname to a Restricted Directory (‘Path Traversal’)

Other information

  • Report Type: Advisory
  • Credits:
  • Date Reported: 2023-03-30
  • Version: 0.3.3
  • AVID Entry