CVE-2024-45846 MindsDB Eval Injection vulnerability

High 8.8 Published Updated

Attackers can execute arbitrary Python code on MindsDB servers via crafted SQL queries when the Weaviate integration is enabled.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-45846?

CVE-2024-45846 is a high-severity code injection vulnerability in mindsdb, published on 12 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An arbitrary code execution vulnerability exists in versions 23.10.3.0 up to 24.7.4.1 of the MindsDB platform, when the Weaviate integration is installed on the server. If a specially crafted ‘SELECT WHERE’ clause containing Python code is run against a database created with the Weaviate engine, the code will be passed to an eval function and executed on the server.

Weakness: CWE-94, CWE-95

Which versions are affected by CVE-2024-45846?

3 open source packages ship an affected version, including mindsdb. It affects 1 product.

PackageAffectedFixed in
mindsdb PyPIFrom 23.10.3.024.7.4.1
mindsdb PyPIFrom 23.10.3.024.7.4.1
mindsdb PyPIFrom 23.10.3.024.7.4.1

Products include Mindsdb Mindsdb.

How do I fix CVE-2024-45846?

Upgrade mindsdb to 24.7.4.1 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-45846 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-45846 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-wcjw-3v6p-4v3r, PYSEC-2024-77.

Is CVE-2024-45846 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free