CVE-2024-5181
criticalpriority · track · 1EPSS 0.027 · 86 %ileEUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2024-5181/cnnvd
- https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0ecnnvd
- https://huntr.com/bounties/c6e3cb58-6fa4-4207-bb92-ae7644174661cnnvd
- https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0eenisa_euvd
- https://huntr.com/bounties/c6e3cb58-6fa4-4207-bb92-ae7644174661enisa_euvd
- https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0ePatchnvd
- https://huntr.com/bounties/c6e3cb58-6fa4-4207-bb92-ae7644174661ExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan