PyPi: Mindsdb

CVE-2024-45847

Safety vulnerability ID: 73309

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 26, 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. The vulnerability stems from the use of the eval() function to parse user-supplied data in 'UPDATE' queries and other input fields. Attackers can exploit this vulnerability by crafting malicious input containing Python code, which the system will execute on the server. 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(), effectively mitigating the risk of code injection attacks. This change significantly improves security by limiting evaluation to literal expressions only, preventing the execution of arbitrary Python code.

Affected package

mindsdb

Latest version: 24.11.4.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