CVE-2024-4267CWE-77

Remote Code Execution in parisneo/lollms-webui

High · published May 22, 2024

CVSS v3.0
8.4
EPSS
1%
Percentile
73.8
In the wild
Unconfirmed
What it is

🚨 A crafty file path is all it takes for this RCE vulnerability to wreak havoc in parisneo/lollms-webui! 🔥 Think of the 'open_file' function like a restaurant that accepts any food order without checking if the ingredients are safe — one wrong order can lead to a kitchen disaster! An attacker could exploit this vulnerability to execute arbitrary commands on the server, potentially leading to unauthorized access to sensitive files or even complete system takeover. This is no small matter; it's like handing over the keys to your entire operation!

Put simply

Think of the 'open_file' function like a restaurant that accepts any food order without checking if the ingredients are safe — one wrong order can lead to a kitchen disaster! This RCE vulnerability arises from improper handling of user-supplied file paths in the 'open_file' module, where subprocess.Popen is used unsafely, allowing command injection via manipulated paths.

What to do

An attacker could exploit this vulnerability to execute arbitrary commands on the server, potentially leading to unauthorized access to sensitive files or even complete system takeover. This is no small matter; it's like handing over the keys to your entire operation! Update to version 9.6 or higher to patch this issue. Implement strict input validation for file paths and avoid using subprocess.Popen without proper safeguards. Regularly audit your file handling code for security weaknesses. You've got this! Equip your application with the necessary defenses and keep your system secure! 🛡️

The record
Technical detail
CVSS v3.0
8.4 · HIGH
Vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01484 · 73.8th percentile
Weakness
CWE-77 · Improper Neutralization of Special Elements used in a Command ('Command Injection')
Published
2024-05-22T19:29Z
EPSS history
Timeline
  • 22 MAY 19:29Z
    Remote Code Execution in parisneo/lollms-webui
    cvelistv5