Path Traversal in mudler/localai
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-5182
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 03:50 UTC · Revision 1
Source evidence
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.
osv:CVE-2024-5182
Complete source record
{
"id": "913a9cd1454969bdedb940e393664c5329d9d49c957314fffd89c9bc8f8f6499",
"url": "https://osv.dev/vulnerability/CVE-2024-5182",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Path Traversal in mudler/localai",
"summary": "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.",
"evidence": "osv:CVE-2024-5182",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-5182",
"aliases": [
"CVE-2024-5182",
"GHSA-cpcx-r2gq-x893",
"GO-2024-2938"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mudler/localai",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "e0187c2a1a4cde837398ada217d0ad161b7976d6"
},
{
"fixed": "1a3dedece06cab1acc3332055d285ac540a47f0e"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:mudler:localai:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.16.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "1a3dedece06cab1acc3332055d285ac540a47f0e"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v2.15.0",
"v2.14.0",
"v2.13.0",
"v2.12.3",
"v2.12.1",
"v2.12.0",
"v2.11.0",
"v2.10.1",
"v2.10.0",
"v2.9.0",
"v2.8.2",
"v2.8.1",
"v2.8.0",
"v2.7.0",
"v2.6.1",
"v2.6.0",
"v2.5.1",
"v2.5.0",
"v2.4.1",
"v2.4.0",
"v2.3.1",
"v2.3.0",
"v2.2.0",
"v2.1.0",
"v2.0.0",
"v2.0.0_beta",
"v1.40.0",
"v1.30.0",
"v1.25.0",
"v1.24.1",
"v.1.24.0",
"v1.23.2",
"v1.23.1",
"v1.23.0",
"v1.22.0",
"v1.21.0",
"v1.20.1",
"v1.20.0",
"v1.19.2",
"v1.19.1",
"v1.19.0",
"v1.18.0",
"v1.17.1",
"v1.17.0",
"v1.16.0",
"v1.15.0",
"v1.14.2",
"v1.14.1",
"v1.14.0",
"v1.13.0",
"v1.12.0",
"v1.11.1",
"v1.11.0",
"v1.10.1",
"v1.10.0",
"v1.9.1",
"v1.9.0",
"v1.8.1",
"v1.8.0",
"v1.7.1",
"v1.7.0",
"v1.6.3",
"v1.6.2",
"v1.6.1",
"v1.6.0",
"v1.5.1",
"v1.5.0",
"v1.4.0",
"v1.3.2",
"v1.3.1",
"v1.3.0",
"v1.2.0",
"v1.1.0",
"v1.0",
"v0.10.0",
"v0.9.2",
"v0.9.1",
"v0.9",
"v0.8.1",
"v0.8",
"v0.7",
"v0.6",
"v0.5",
"v0.4",
"v0.3",
"v0.2",
"v0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-5182.json"
}
}
],
"modified": "2026-10-28T02:30:46.717233602Z",
"provider": "osv",
"references": [
"https://huntr.com/bounties/f7a87f29-c22a-48e8-9fce-b6d5a273e545",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5182.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-5182",
"https://github.com/mudler/localai/commit/1a3dedece06cab1acc3332055d285ac540a47f0e"
],
"provider_metadata": {
"cwe_ids": [
"CWE-22"
],
"cna_assigner": "@huntr_ai",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5182.json"
}
},
"related_cves": [
{
"value": "CVE-2024-5182",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 514533,
"published_at": "2024-06-19T23:30:38.219+00:00"
}