CVE-2024-45850 MindsDB Eval Injection vulnerability
Attackers can execute arbitrary Python code on the server via crafted INSERT queries in the SharePoint integration.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-45850?
CVE-2024-45850 is a high-severity code injection vulnerability in mindsdb, published on 12 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
An arbitrary code execution vulnerability exists in versions 23.10.5.0 up to 24.7.4.1 of the MindsDB platform, when the Microsoft SharePoint integration is installed on the server. For databases created with the SharePoint engine, an ‘INSERT’ query can be used for site column creation. If such a query is specially crafted to contain Python code and is run against the database, the code will be passed to an eval function and executed on the server.
Which versions are affected by CVE-2024-45850?
3 open source packages ship an affected version, including mindsdb. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
mindsdb PyPI | From 23.10.5.0 | 24.7.4.1 |
mindsdb PyPI | From 23.10.5.0 | 24.7.4.1 |
mindsdb PyPI | From 23.10.5.0 | 24.7.4.1 |
Products include Mindsdb Mindsdb.
How do I fix CVE-2024-45850?
Upgrade mindsdb to 24.7.4.1 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-45850 being exploited?
There is no known exploitation of CVE-2024-45850 in the wild and no public exploit code.
Other vulnerabilities in mindsdb
- CVE-2024-24759 MindsDB Vulnerable to Bypass of SSRF Protection with DNS Rebinding
- CVE-2023-50731 MindsDB has arbitrary file write in file.py
- CVE-2023-38699 MindsDB 'Call to requests with verify=False disabling SSL certificate checks, security issue.' issue
- CVE-2024-45856 MindsDB Cross-site Scripting vulnerability
- CVE-2026-27483 MindsDB has Path Traversal in /api/files Leading to Remote Code Execution
Sources
Also known as GHSA-v6g6-3cm3-vf6c, PYSEC-2024-80.