RCE in Mudler Localai
CVE-2024-5181
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.
Vulnerability class: Command Injection (OS Command Injection)
EPSS: 0.027 (84.3th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Mudler Localai — versions 2.14.0
- Mudler Mudler/localai — versions unspecified
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security@huntr.dev (Exploit, Third Party Advisory)
- security@huntr.dev (Patch)
Frequently asked questions
- What is CVE-2024-5181?
- CVE-2024-5181 is a critical-severity vulnerability in Mudler Localai, classified under OS Command Injection. CVSS score: 9.8/10. Published 2024-06-26.
- How severe is CVE-2024-5181?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2024-5181 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.