CVE-2024-4320CWE-29

Remote Code Execution due to LFI in '/install_extension' in parisneo/lollms-webui

Critical · published June 6, 2024

CVSS v3.0
9.8
EPSS
34%
Percentile
98.4
In the wild
Unconfirmed
What it is

🔥 Watch out! A single crafted `name` parameter can lead to remote code execution in the parisneo/lollms-webui app, turning your server into a playground for attackers without any user interaction! Think of it like a sneaky waiter who takes your order for dessert and instead brings in a mystery dish cooked by someone off the street — you’d never know what’s coming next! This RCE vulnerability lets attackers load and execute any Python file, potentially wreaking havoc on your system. An attacker exploiting this could execute arbitrary code on your server, opening the door for data theft, system takeover, or the installation of malicious software. It's a critical risk that could compromise not just your application, but also the entire server environment without any warning!

Put simply

Think of it like a sneaky waiter who takes your order for dessert and instead brings in a mystery dish cooked by someone off the street — you’d never know what’s coming next! This RCE vulnerability lets attackers load and execute any Python file, potentially wreaking havoc on your system. The vulnerability lies in the `@router.post("/install_extension")` route handler, which fails to properly validate the `name` parameter in the `ExtensionBuilder().build_extension()` method, allowing local file inclusion (LFI) that leads to arbitrary code execution.

What to do

An attacker exploiting this could execute arbitrary code on your server, opening the door for data theft, system takeover, or the installation of malicious software. It's a critical risk that could compromise not just your application, but also the entire server environment without any warning! Immediately patch to the latest version of parisneo/lollms-webui to fix this vulnerability. Additionally, review your server configurations to ensure that sensitive files cannot be accessed through the application. Consider implementing input validation for parameters to prevent similar issues in the future. You've got this! Follow these steps, and you'll be on your way to securing your application like a pro! 🛡️

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.34354 · 98.4th percentile
Weakness
CWE-29 · Path Traversal: '\..\filename'
Published
2024-06-06T18:22Z
EPSS history
Timeline
  • 06 JUN 18:22Z
    Remote Code Execution due to LFI in '/install_extension' in parisneo/lollms-webui
    cvelistv5