CVE-2024-6983 Remote Code Execution in mudler/localai

High 8.8 Published Updated

Attackers can upload malicious binary files to LocalAI to execute arbitrary code and gain full system control.

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

What is CVE-2024-6983?

CVE-2024-6983 is a high-severity code injection vulnerability in mudler/localai, published on 27 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

mudler/localai version 2.17.1 is vulnerable to remote code execution. The vulnerability arises because the localai backend receives inputs not only from the configuration file but also from other inputs, allowing an attacker to upload a binary file and execute malicious code. This can lead to the attacker gaining full control over the system.

Weakness: CWE-94

Which versions are affected by CVE-2024-6983?

It affects 1 product.

Products include Mudler Localai.

How do I fix CVE-2024-6983?

No fix has been published for CVE-2024-6983 yet. Limit exposure of the affected software until one is available.

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

Is CVE-2024-6983 being exploited?

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

Sources

Also known as GHSA-v6qv-c78w-ff25.

Is CVE-2024-6983 in your software?

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

Check your SBOMs for free