VAITP Dataset

← Back to the dataset

CVE-2026-92207

MindsDB OpenBBtable RCE: unauthenticated code injection via unchecked user string.

  • CVSS 8.8
  • CWE-94
  • Input Validation and Sanitization
  • Remote

MindsDB OpenBBtable Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of MindsDB. Authentication is required to exploit this vulnerability. The specific flaw exists within the OpenBBtable class. The issue results from the lack of proper validation of a user-supplied string before using it to execute Python code. An attacker can leverage this vulnerability to execute code in the context of the service account. Was ZDI-CAN-28388.

CVSS base score
8.8
Published
2026-10-21
OWASP
A03 Injection
Orthogonal defect classification
Checking
Code defect classification
Missing Check
Category
Input Validation and Sanitization
Subcategory
Command Injection
Accessibility scope
Remote
Impact
Arbitrary Code Execution
Affected component
MindsDB
Fixed by upgrading
Yes

Solution

Upgrade MindsDB to version 24.3.0 or later, which includes the fix for the OpenBBtable code‑injection RCE (ZDI‑CAN‑28388).

Vulnerable code sample

import pandas as pd

class OpenBBtable:
    def __init__(self, db):
        self.db = db

    def query(self, table_name: str, filter_expr: str) -> pd.DataFrame:
        # VULNERABLE: executes user supplied string as code
        query_str = f"SELECT * FROM {table_name} WHERE {filter_expr}"
        return self.db.execute(query_str)

Patched code sample

import pandas as pd
import ast

class OpenBBtable:
    def __init__(self, db):
        self.db = db

    def query(self, table_name: str, filter_expr: str) -> pd.DataFrame:
        # FIX: validate filter expression safely
        try:
            ast.parse(filter_expr, mode='eval')
        except SyntaxError:
            raise ValueError("Invalid filter expression")
        query_str = f"SELECT * FROM {table_name} WHERE {filter_expr}"
        return self.db.execute(query_str)

Cite this entry

@misc{vaitp:cve202692207,
  title        = {{MindsDB OpenBBtable RCE: unauthenticated code injection via unchecked user string.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-92207},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-92207/}}
}

Download this entry as JSON Download the whole dataset

Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.