PyPi: Mindsdb

CVE-2024-45851

Safety vulnerability ID: 73317

This vulnerability was reviewed by experts

The information on this page was manually curated by our Cybersecurity Intelligence Team.

Created at Sep 12, 2024 Updated at Nov 19, 2024
Scan your Python projects for vulnerabilities →

Advisory

A critical arbitrary code execution vulnerability affects MindsDB, particularly in the ChromaDB, SharePoint, Weaviate, and VectorDatabase integrations. Attackers can exploit this vulnerability by crafting malicious queries, including 'INSERT' queries for list item creation in SharePoint databases. The system executes arbitrary Python code on the server using the unsafe eval() function when processing these queries. This flaw allows unauthorized command execution, potentially compromising system integrity and confidentiality. The vulnerability falls under CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection'). The update replaces the unsafe eval() function with ast.literal_eval(), significantly improving security by limiting evaluation to literal expressions only. This change prevents the execution of arbitrary Python code, effectively mitigating the risk of code injection attacks across all affected integrations.

Affected package

mindsdb

Latest version: 24.11.3.0

MindsDB's AI SQL Server enables developers to build AI tools that need access to real-time data to perform their tasks

Affected versions

Fixed versions

Vulnerability changelog

This vulnerability has no description

Resources

Use this package?

Scan your Python project for dependency vulnerabilities in two minutes

Scan your application

Severity Details

CVSS Base Score

HIGH 8.8

CVSS v3 Details

HIGH 8.8
Attack Vector (AV)
NETWORK
Attack Complexity (AC)
LOW
Privileges Required (PR)
LOW
User Interaction (UI)
NONE
Scope (S)
UNCHANGED
Confidentiality Impact (C)
HIGH
Integrity Impact (I)
HIGH
Availability Availability (A)
HIGH