CVE-2023-30620
Python vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66471HIGH8.9
  • PythonPython
  • py3-urllib3
NoYesDec 05, 2025
CVE-2025-66418HIGH8.9
  • PythonPython
  • python-urllib3
NoYesDec 05, 2025
CVE-2025-65958HIGH8.5
  • PythonPython
  • cpe:2.3:a:openwebui:open_webui
NoYesDec 04, 2025
CVE-2025-56427HIGH7.5
  • PythonPython
  • composio
NoNoDec 04, 2025
CVE-2025-63681MEDIUM4.3
  • PythonPython
  • open-webui
NoNoDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management