← Vulnerability feed

Vulnerability record · CVE-2024-5181 · published 26 June 2024

CVE-2024-5181: Mudler localai os command injection vulnerability

Mudler · Localai

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.

9.8 CVSS 3.0 Critical EPSS 2.7% · top 14.7% CWE-78 · OS command injection
9.8CVSS 3.0 base score
2.7%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2024-5181 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2024-6868Mudler localai link following vulnerabilitymudler/LocalAI version 2.17.1 allows for arbitrary file write due to improper handling of automatic archive extraction. When model configurations spe…EPSS 1.5%9.8CVE-2024-2029Mudler localai os command injection vulnerabilityA command injection vulnerability exists in the `TranscriptEndpoint` of mudler/localai, specifically within the `audioToWav` function used for conver…EPSS 2.9%9.1CVE-2024-5182Mudler localai path traversal vulnerabilityA path traversal vulnerability exists in mudler/localai version 2.14.0, where an attacker can exploit the `model` parameter during the model deletion…EPSS 26%8.8CVE-2024-6983Mudler localai code injection vulnerabilitymudler/localai version 2.17.1 is vulnerable to remote code execution. The vulnerability arises because the localai backend receives inputs not only f…EPSS 1.3%6.5CVE-2024-3135Mudler localai cross-site request forgery vulnerabilityA Cross-Site Request Forgery (CSRF) vulnerability exists in the mudler/localai application, allowing attackers to craft malicious webpages that, when…EPSS 0.31%6.1CVE-2024-9900Mudler localai cross-site scripting vulnerabilitymudler/localai version v2.21.1 contains a Cross-Site Scripting (XSS) vulnerability in its search functionality. The vulnerability arises due to impro…EPSS 0.54%6.1CVE-2024-48057Mudler localai cross-site scripting vulnerabilitylocalai <=2.20.1 is vulnerable to Cross Site Scripting (XSS). When calling the delete model API and passing inappropriate parameters, it can cause a …EPSS 0.25%5.9CVE-2024-7010Mudler localai observable discrepancy vulnerabilitymudler/localai version 2.17.1 is vulnerable to a Timing Attack. This type of side-channel attack allows an attacker to compromise the cryptosystem by…EPSS 0.52%

Source: NIST National Vulnerability Database (record CVE-2024-5181), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.