What’s Vulnerable › Vulnerabilities
CVE-2024-5182: Path Traversal in mudler/localai
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 25.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-06-20 · updated 2026-06-17
- Weakness: CWE-22
Description
A path traversal vulnerability exists in mudler/localai version 2.14.0, where an attacker can exploit the `model` parameter during the model deletion process to delete arbitrary files. Specifically, by crafting a request with a manipulated `model` parameter, an attacker can traverse the directory structure and target files outside of the intended directory, leading to the deletion of sensitive data. This vulnerability is due to insufficient input validation and sanitization of the `model` parameter.
Affected products
- mudler/localai: before 2.16.0 — fixed in 2.16.0
How to fix
Upgrade to a fixed version: mudler/localai 2.16.0. Check the vendor advisory for mitigations.
References
- https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0e
- https://huntr.com/bounties/f7a87f29-c22a-48e8-9fce-b6d5a273e545
- https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0e
- https://huntr.com/bounties/f7a87f29-c22a-48e8-9fce-b6d5a273e545
Get alerted when CVE-2024-5182 or the next vulnerability affects your stack