CVE-2024-5182: A path traversal vulnerability exists in mudler/localai version 2.14.0, where an attacker can exploit the `mod
CVE-2024-5182 is a critical-severity flaw (CVSS 9.1) affecting localai. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- Critical severity
- EPSS top 2%: very likely to be exploited
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.1 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 25.5% (top 2%) |
| CISA exploited list | No |
| Weakness | CWE-22 |
| Published | 2024-06-20 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-5182?
localai: upgrade to 2.16.0. Exact commands for each OS are on this page.
Is CVE-2024-5182 being exploited?
CVE-2024-5182 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-5182 affect?
CVE-2024-5182 affects localai. Severity is critical (CVSS 9.1). 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
How urgent is CVE-2024-5182?
Priority 66/100. Critical severity; EPSS top 2%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2024-9900 MEDIUM 6.1 DOWNGRADE mudler/localai version v2.21.1 contains a Cross-Site Scripting (XSS) vulnerability in its search functionality
- CVE-2024-7010 MEDIUM 5.9 DOWNGRADE mudler/localai version 2.17.1 is vulnerable to a Timing Attack
- CVE-2024-6983 HIGH 8.8 DOWNGRADE mudler/localai version 2.17.1 is vulnerable to remote code execution
- CVE-2024-6868 CRITICAL 9.8 DOWNGRADE mudler/LocalAI version 2.17.1 allows for arbitrary file write due to improper handling of automatic archive ex
- CVE-2024-6095 MEDIUM 5.8 UPGRADE A vulnerability in the /models/apply endpoint of mudler/localai versions 2.15.0 allows for Server-Side Request