CVE-2024-3104CWE-78

Remote Code Execution in mintplex-labs/anything-llm

Critical · published June 6, 2024

CVSS v3.0
9.6
EPSS
1%
Percentile
61.8
In the wild
Unconfirmed
What it is

🚨 A tiny slip in managing environment variables has turned into a massive remote code execution vulnerability in anything-llm! 🔥 Think of it like a restaurant where the chef blindly follows any order without checking the ingredients. An attacker can serve up their own ingredients via the `POST /api/system/update-env` endpoint, completely taking over the kitchen! 🍽️ This vulnerability could be absolutely devastating, allowing an attacker to execute arbitrary code on the host running anything-llm. They could gain access to sensitive data, modify files, or even cripple the service entirely, resulting in a denial of service! Yikes!

Put simply

Think of it like a restaurant where the chef blindly follows any order without checking the ingredients. An attacker can serve up their own ingredients via the `POST /api/system/update-env` endpoint, completely taking over the kitchen! 🍽️ The remote code execution vulnerability arises from improper handling of environment variables, enabling attackers to inject arbitrary variables through the API endpoint, which leads to code execution on the host system.

What to do

This vulnerability could be absolutely devastating, allowing an attacker to execute arbitrary code on the host running anything-llm. They could gain access to sensitive data, modify files, or even cripple the service entirely, resulting in a denial of service! Yikes! Immediately upgrade to version 1.0.0 to patch this vulnerability. Additionally, review your environment variable handling procedures to ensure proper validation and protection against future exploits. 🛡️ You've got this! Follow the steps to secure your system, and you'll be a security hero in no time! 💪✨

The record
Technical detail
CVSS v3.0
9.6 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00978 · 61.8th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2024-06-06T17:50Z
EPSS history
Timeline
  • 06 JUN 17:50Z
    Remote Code Execution in mintplex-labs/anything-llm
    cvelistv5