CVE-2024-45851: Arbitrary Code Execution via SharePoint Engine in MindsDB
- Vendor
- Mindsdb
A vulnerability in MindsDB versions 23.10.5.0 through 24.7.4.1 allows arbitrary code execution when the Microsoft SharePoint integration is installed. Specifically, for databases using the SharePoint engine, a specially crafted 'INSERT' query containing Python code can be executed on the server due to unsafe use of eval, leading to remote code execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An attacker with the ability to execute 'INSERT' queries on a MindsDB instance with the SharePoint integration can execute arbitrary Python code on the server, potentially leading to full system compromise, data exfiltration, lateral movement, or further exploitation.
Mitigation
If you can’t patch tonight, do this now.
Restrict access to MindsDB instances, especially those with the SharePoint integration enabled. Limit database user permissions to prevent untrusted users from executing 'INSERT' queries. Monitor for suspicious activity and consider disabling the SharePoint integration until a fix is applied.
Remediation
Patch, then assume compromise.
Upgrade MindsDB to a version where this vulnerability is patched. Ensure that the SharePoint integration does not unsafely evaluate user-supplied input. Remove or restrict the use of eval on untrusted data.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2024-45851 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2024-45851 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-45851?
- Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2024-45851.
- Is there a patch for CVE-2024-45851?
- Upgrade MindsDB to a version where this vulnerability is patched. Ensure that the SharePoint integration does not unsafely evaluate user-supplied input.
- What products are affected by CVE-2024-45851?
- Mindsdb.
- How severe is CVE-2024-45851?
- CVE-2024-45851 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 0.86% (59th percentile) as of Sep 25, 2026.
Recent activity
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.