# CVE-2024-5181: Command Injection in mudler/localai

- Severity: Critical 9.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.69%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-26T02:53:58.461Z
- Modified: 2026-06-17T08:15:21.630Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- mudler mudler/localai: from unspecified before 2.16.0
- mudler localai: 2.14.0

## References

- <https://huntr.com/bounties/c6e3cb58-6fa4-4207-bb92-ae7644174661> (exploit, third-party-advisory)
- <https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0e> (patch)

## Sources

- CVE List: [CVE-2024-5181](https://www.cve.org/CVERecord?id=CVE-2024-5181), CVE Terms of Use, modified 2024-08-01
- NVD: [CVE-2024-5181](https://nvd.nist.gov/vuln/detail/CVE-2024-5181), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-5181 · Whole record: https://cve.day/CVE-2024-5181.json · Rebuilt by cve.day 2026-11-25T22:58:42.248Z
