CVE-2024-5182
criticalpriority · attend · 45EPSS 0.255 · 98 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–9.1
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-cpcx-r2gq-x893LocalAI path traversal vulnerability2024-06-20ghsa · osvUS
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.
- GO-2024-2938LocalAI path traversal vulnerability in github.com/go-skynet/LocalAI2024-06-28vendor · osvUS
LocalAI path traversal vulnerability in github.com/go-skynet/LocalAI. NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions. (If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.) The additional affected modules and versions are: github.com/go-skynet/LocalAI before v2.16.0.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2024-5182/cnnvd
- https://github.com/mudler/LocalAI/releases/tag/v2.17.1Patchcnnvd
- https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0ecnnvd
- https://huntr.com/bounties/f7a87f29-c22a-48e8-9fce-b6d5a273e545cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2024-5182cnnvd
- https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0eenisa_euvd
- https://huntr.com/bounties/f7a87f29-c22a-48e8-9fce-b6d5a273e545enisa_euvd
- https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0ePatchnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan