
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2023-30620 affects mindsdb, a Machine Learning platform designed to help developers build AI solutions. The vulnerability was discovered in versions up to 23.1.5.0 and involves an unsafe extraction operation using tarfile.extractall() from remotely retrieved tarballs. This vulnerability, sometimes referred to as TarSlip or ZipSlip variant, was patched in release 23.2.1.0. The issue was assigned a CVSS v3.1 base score of 7.5 (HIGH) (GitHub Advisory).
The vulnerability stems from the unsafe use of tarfile.extractall() function when processing remotely retrieved tarballs. When a file with .tar.gz extension is uploaded, the application extracts it without properly validating the destination paths of the contained files. This implementation fails to check for path traversal attempts in the archived files' names, which could contain sequences like '../../../' or absolute paths (GitHub Advisory).
An attacker can leverage this vulnerability to write files to any location on the filesystem that the server process has access to. While there is no risk of file exposure, the vulnerability allows for arbitrary file writes, which could potentially lead to overwriting critical system files. The attack could be executed by crafting a malicious tarball containing files with traversal paths like '../../../../../../../../etc/passwd' (GitHub Advisory).
The vulnerability has been fixed in version 23.2.1.0 by implementing safe extraction methods. Users are strongly advised to upgrade to this version. For those unable to upgrade immediately, recommended mitigations include using safer modules like zipfile, implementing tarsafe as an alternative to tarfile, or validating the absolute paths of extracted files to prevent path traversal attempts (GitHub Advisory, GitHub Patch).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."