MindsDB Pickle Deserialization Remote Code Execution Vulnerability

Vulnerability

A remote code execution vulnerability has been identified in MindsDB versions prior to 26.01. The issue arises in the Pickle Handler component, where the pickle.loads function is vulnerable to unsafe deserialization. This vulnerability can be exploited by uploading malicious model code that injects objects with harmful __reduce__ methods, leading to arbitrary code execution during the model prediction phase.

Impact

Exploitation of this vulnerability allows for arbitrary code execution on the server where MindsDB is running.

Reproduction

The vulnerability can be reproduced by uploading a malicious BYOM handler that includes a class with a __reduce__ method designed to execute arbitrary commands. After uploading the handler, a model can be created that triggers the execution of the malicious code during the prediction phase by deserializing the model state that contains the injected payload.

Added: May 4, 2026, 12:18 AM
Updated: May 4, 2026, 12:18 AM

Vulnerability Rating

Custom Algorithm
spread
6.2
impact
7.5
exploitability
6.0
remediation
0.0
relevance
7.4
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.