CVE-2024-5181 Command Injection in mudler/localai
Attackers can execute arbitrary code on LocalAI servers by manipulating the backend parameter in the configuration file.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-5181?
CVE-2024-5181 is a critical command injection vulnerability in mudler/localai, published on 26 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A command injection vulnerability exists in the mudler/localai version 2.14.0. The vulnerability arises from the application's handling of the backend parameter in the configuration file, which is used in the name of the initialized process. An attacker can exploit this vulnerability by manipulating the path of the vulnerable binary file specified in the backend parameter, allowing the execution of arbitrary code on the system. This issue is due to improper neutralization of special elements used in an OS command, leading to potential full control over the affected system.
Weakness: CWE-78
Which versions are affected by CVE-2024-5181?
It affects 1 product.
Products include Mudler Localai.
How do I fix CVE-2024-5181?
No fix has been published for CVE-2024-5181 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-5181 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-5181 exists.
Other vulnerabilities in mudler/localai
Sources
Also known as GHSA-8xc2-8m55-8q36.