PyPI: mindsdb

CVE-2024-45855

Safety vulnerability ID: SFTY-20240912-44737

Safety legacy ID: pyup.io-73321

MindsDB affected versions contain a critical vulnerability in the 'finetune' function of 'inhouse' models. This flaw allows attackers to execute arbitrary code on the server by exploiting unsafe deserialization of untrusted data. Malicious actors can upload a specially crafted 'inhouse' model, which, when finetuned, triggers the execution of arbitrary code. This vulnerability poses a significant security risk, potentially leading to unauthorized access, data breaches, or complete system compromise. Users should exercise extreme caution when finetuning 'inhouse' models and ensure they only use trusted and verified models until a patch is available.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

MindsDB Deserialization of Untrusted Data vulnerability

Advisory

MindsDB affected versions contain a critical vulnerability in the 'finetune' function of 'inhouse' models. This flaw allows attackers to execute arbitrary code on the server by exploiting unsafe deserialization of untrusted data. Malicious actors can upload a specially crafted 'inhouse' model, which, when finetuned, triggers the execution of arbitrary code. This vulnerability poses a significant security risk, potentially leading to unauthorized access, data breaches, or complete system compromise. Users should exercise extreme caution when finetuning 'inhouse' models and ensure they only use trusted and verified models until a patch is available.

Affected Package

Affecting mindsdb package, versions>=23.10.2.0

Also affects

---

How to Fix

Upgrademindsdbto0.6.5or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more