CVE-2024-6868CWE-59

Arbitrary File Write in mudler/LocalAI

High · published October 29, 2024

CVSS v3.0
8.1
EPSS
2%
Percentile
74.8
In the wild
Unconfirmed
What it is

⚡ A crafty 'tarslip' attack is all it takes here! With LocalAI version 2.17.1, attackers can exploit improper archive handling to write files anywhere on the server. 😱 Imagine a hotel that automatically opens every package delivered, no questions asked. If someone sends a box filled with dangerous tools, the hotel unwittingly lets them in, allowing unauthorized access to every room! This vulnerability can lead to remote code execution (RCE), meaning an attacker could overwrite critical backend assets on the server and potentially take full control. This is not just a nuisance—it's an all-access pass for attackers to wreak havoc!

Put simply

Imagine a hotel that automatically opens every package delivered, no questions asked. If someone sends a box filled with dangerous tools, the hotel unwittingly lets them in, allowing unauthorized access to every room! The flaw arises from improper handling of automatic archive extraction in LocalAI. When model configurations specify additional files as archives (like .tar), these archives are extracted without proper checks, allowing arbitrary file writes to unauthorized locations.

What to do

This vulnerability can lead to remote code execution (RCE), meaning an attacker could overwrite critical backend assets on the server and potentially take full control. This is not just a nuisance—it's an all-access pass for attackers to wreak havoc! To protect your system, immediately update to LocalAI version 2.17.2 where this issue is patched. Additionally, audit your archive handling processes to ensure files can’t be written outside designated directories. Don't forget to monitor your server for unusual activity! You've got this! Stay proactive, follow these steps, and you'll secure your server in no time! 🛡️

The record
Technical detail
CVSS v3.0
8.1 · HIGH
Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01544 · 74.8th percentile
Weakness
CWE-59 · Improper Link Resolution Before File Access ('Link Following')
Published
2024-10-29T12:46Z
EPSS history
Timeline
  • 29 OCT 12:46Z
    Arbitrary File Write in mudler/LocalAI
    cvelistv5