CVE-2024-2029CWE-78

Command Injection in mudler/localai

Critical · published April 10, 2024

CVSS v3.0
9.8
EPSS
3%
Percentile
86.7
In the wild
Unconfirmed
What it is

🚨 A sneaky command injection lurks in the `TranscriptEndpoint` of mudler/localai, letting attackers take control with a simple audio file! 🔥 Think of this like a chef who blindly trusts any recipe handed to them, throwing in all kinds of unexpected ingredients without checking — that’s how commands get executed without a second thought! If exploited, a crafty attacker could execute arbitrary commands on your host system, stealing sensitive data, altering files, or even sabotaging operations. Depending on the privileges of the process running the command, the consequences can range from a mere nuisance to catastrophic data breaches! ⚠️

Put simply

Think of this like a chef who blindly trusts any recipe handed to them, throwing in all kinds of unexpected ingredients without checking — that’s how commands get executed without a second thought! This command injection vulnerability exists because user-supplied filenames aren’t properly sanitized before being passed to ffmpeg via a shell command, allowing untrusted input to execute arbitrary shell commands.

What to do

If exploited, a crafty attacker could execute arbitrary commands on your host system, stealing sensitive data, altering files, or even sabotaging operations. Depending on the privileges of the process running the command, the consequences can range from a mere nuisance to catastrophic data breaches! ⚠️ To protect yourself, update to the latest version of mudler/localai that fixes this issue as soon as it’s available. Additionally, it’s crucial to implement input validation and sanitization for all user-supplied data to prevent such vulnerabilities in the future. 🛡️ You've got this! Stay vigilant, follow these steps, and you’ll reinforce your defenses in no time! 💪

The record
Technical detail
CVSS v3.0
9.8 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02879 · 86.7th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2024-04-10T17:08Z
EPSS history
Timeline
  • 10 APR 17:08Z
    Command Injection in mudler/localai
    cvelistv5