Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
mindsdb-vectordb-eval-rce — Case study: MindsDB CVE-2024-45846..45851 (builtin eval on query values in integration handlers). Demo only, not for use. | Kitploit
Tools/GitHubGitHub/ferralon-demo/mindsdb-vectordb-eval-rce
Static AnalysisVulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationPapers & ResearchLearning & Education
GitHubferralon-demo/mindsdb-vectordb-eval-rce

mindsdb-vectordb-eval-rce

Case study: MindsDB CVE-2024-45846..45851 (builtin eval on query values in integration handlers). Demo only, not for use.

View Repository
Dec 6, 2026Not yet reviewed
Share

MindsDB: eval() on query values in vector-database and SharePoint handlers (CVE-2024-45846 to -45851)

Case study of six eval-injection advisories (CWE-94/95) in mindsdb/mindsdb (GitHub now resolves this name to mindsdb/mindshub), all fixed by one commit: integration handlers pass query-supplied strings to Python's builtin eval; the upstream fix replaces each call with ast.literal_eval.

Demo only, not for use. This repository is a case study built from unmodified snapshots of mindsdb/mindsdb at two historical commits. It is not a fork and is not maintained. Do not install, deploy, or depend on it: the baseline branch contains code affected by the advisories below.

This branch: main holds only this index. The code is on baseline (tag poe, vulnerable) and fix (tag pone, patched).

Advisories

All six: mindsdb < 24.7.4.1 (lower bound varies), CWE-94/CWE-95, "MindsDB Eval Injection vulnerability", fixed by commit 11a4db792a (PR #9533, "Replace eval with literal_eval", merged 2024-07-24).

CVEGHSAQuery form (per advisory)eval call at baseline (upstream ff120b08f4)
CVE-2024-45846GHSA-wcjw-3v6p-4v3rSELECT … WHERE, Weaviate engineWeaviateDBHandler.select, mindsdb/integrations/handlers/weaviate_handler/weaviate_handler.py:338
CVE-2024-45847GHSA-crmg-rp64-5cm3UPDATE, several vector-store enginesVectorStoreHandler._dispatch_update, mindsdb/integrations/libs/vectordatabase_handler.py:245
CVE-2024-45848GHSA-9gq6-6936-885wINSERT, ChromaDB engineChromaDBHandler.insert, mindsdb/integrations/handlers/chromadb_handler/chromadb_handler.py:332
CVE-2024-45849GHSA-c85f-pcx6-2ghmINSERT (list creation), SharePoint engineSharepointAPI.create_a_list, mindsdb/integrations/handlers/sharepoint_handler/sharepoint_api.py:252 and :255
CVE-2024-45850GHSA-v6g6-3cm3-vf6cINSERT (site column creation), SharePoint engineSharepointAPI.create_a_site_column, sharepoint_api.py:413
CVE-2024-45851GHSA-wf9g-c67g-h4chINSERT (list item creation), SharePoint engineSharepointAPI.create_an_item, sharepoint_api.py:577

Ingress at baseline

The HTTP SQL endpoint: Flask-RESTX namespace sql (mindsdb/api/http/namespaces/configs/sql.py:3, registered at mindsdb/api/http/initialize.py:224); @ns_conf.route("/query") on class Query with handler post (mindsdb/api/http/namespaces/sql.py:22-30). post reads the JSON field query (line 31) and calls FakeMysqlProxy().process_query(query) (line 49).

From process_query, a query reaches an integration handler through MindsDB's SQL planner and executor and handlers loaded per database engine at run time. This README does not assert a specific static call chain from the ingress to each eval; the advisories describe the query forms that reach them. The handlers are only active when the corresponding integration is installed (per the advisories).

What the fix changes

At 11a4db792a, each eval(...) above is ast.literal_eval(...) on the same statement (lines shift by one where import ast was added): e.g. vectordatabase_handler.py:245, weaviate_handler.py:339. No builtin eval call remains in the four changed files; the handlers and the ingress are unchanged.

Provenance

This is not a fork: a fresh repository whose code branches hold upstream source snapshots, with no upstream history and no upstream remote.

BranchTagUpstream commitDateSnapshot commitSnapshot tree
baselinepoeff120b08f42024-07-238e6ff4c1ba8fb72eaad7a8e195ef2a20647d491b4f91fdb2b0aaa8bce5464e868c4757c06d4452b1
fixpone11a4db792a2024-07-244471ebcf4a3507288da6f5a731beaaeaeed6081f2d55a54d85980599cd8f163b17fd5e4c6ede119e

Each snapshot commit is the upstream tree at that commit with one change: .github/workflows/ (9 files) is removed so that upstream CI does not run here. No other file is added, removed, or edited. The fix snapshot's parent is the baseline snapshot, so the diff between the two snapshot commits (compare) is exactly the upstream fix commit's diff. On each code branch, a second commit replaces upstream's README.md with a branch-specific version of this file; upstream's README is in the snapshot commit.

To check a snapshot against upstream from a clone of this repository:

git fetch https://github.com/mindsdb/mindsdb ff120b08f45a4b15a313f7723ea0f2d8aa4be87c
git diff --stat FETCH_HEAD 8e6ff4c1ba8fb72eaad7a8e195ef2a20647d491b   # lists only .github/workflows/*

Tags

Related Tools

  • ghidra

    Ghidra is a software reverse engineering (SRE) framework

  • capa

    Rule-based static and dynamic analysis tool that identifies capabilities in PE, ELF, .NET, and shellcode files, mapping them to MITRE ATT&CK techniques for malware triage.

  • yara-x

    A rewrite of YARA in Rust.

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    745
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher platform that deploys a rogue GSM cell to intercept SMS, inject messages and track mobile devices

    732
  • 3

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    610
  • 4

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    546
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    414
  • 6

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    413

Explore all tools

Browse our collection of tools

View all tools →
Download Tool