PyPi: Mindsdb

CVE-2024-45849

Safety vulnerability ID: 73311

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. Attackers can exploit this vulnerability by crafting malicious 'INSERT' queries for list creation in SharePoint databases, or other queries containing Python code for the affected integrations. The system executes this code on the server using the unsafe eval() function, allowing unauthorized command execution and potentially compromising system integrity and confidentiality. This vulnerability falls under CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection'). The patch 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.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