PyPi: Mindsdb

CVE-2024-45848

Safety vulnerability ID: 73310

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 when using the ChromaDB, SharePoint, Weaviate, or VectorDatabase integrations. Attackers can exploit this vulnerability by crafting malicious 'INSERT', 'UPDATE', or other queries containing Python code, which the system executes on the server using the unsafe eval() function. This flaw allows unauthorized command execution, potentially compromising the system's integrity and confidentiality. The vulnerability falls under CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection'). Users must update to the latest version immediately, which replaces the unsafe eval() function with ast.literal_eval(). This change significantly improves security by limiting evaluation to literal expressions only, preventing the execution of arbitrary Python code and effectively mitigating the risk of code injection attacks.

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