{"schemaVersion":3,"id":"CVE-2024-6868","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"mudler/LocalAI version 2.17.1 allows for arbitrary file write due to improper handling of automatic archive extraction. When model configurations specify additional files as archives (e.g., .tar), these archives are automatically extracted after downloading. This behavior can be exploited to perform a 'tarslip' attack, allowing files to be written to arbitrary locations on the server, bypassing checks that normally restrict files to the models directory. This vulnerability can lead to remote code execution (RCE) by overwriting backend assets used by the server.","dates":{"published":"2024-10-29T12:46:54.732Z","modified":"2025-10-15T12:49:47.751Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01544,"percentile":0.74779,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.01544},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.01544,"percentile":0.74779}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.01544,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.01544,"percentile":0.74779}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_7FE5192C39DEDB44","name":"Exploit Reference (huntr.com)","source":"reference","url":"https://huntr.com/bounties/752d2376-2d9a-4e17-b462-3c267f9dd229","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access ('Link Following')","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"}],"affected":[{"vendor":"mudler","product":"localai","name":"localai","label":"localai","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.17.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.17.1","eol":null,"hubHref":"/vendor/mudler/localai"},{"vendor":"mudler","product":"mudler/localai","name":"mudler/localai","label":"mudler/localai","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, < 2.18.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, < 2.18.1","eol":null,"hubHref":"/vendor/mudler/mudlerlocalai"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://huntr.com/bounties/752d2376-2d9a-4e17-b462-3c267f9dd229","label":"huntr.com/bounties/752d2376-2d9a-4e17-b462-3c267f9dd229","hostname":"huntr.com","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/mudler/localai/commit/a181dd0ebc5d3092fc50f61674d552604fe8ef9c","label":"github.com/mudler/localai/commit/a181dd0ebc5d3092fc50f61674d552604fe8ef9c","hostname":"github.com","tags":["Patch"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-10-29T12:46:54.732Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-10-15T12:49:47.751Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T16:32:47.850Z","stale":false,"partial":false}}