INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2024-4078

LoLLMS Command Injection vulnerability

CVE-2024-4078 ยท 2024-05-16 high

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Code and command execution
Affected
lollms (PyPI)
CVSS
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.9% chance of exploitation in 30 days

How it works, in short

The unInstall_binding endpoint uses an unsanitised name that traverses directories, letting an attacker load a malicious __init__.py and run code. (Our summary, written by a model. The source text is below.)

Details

A vulnerability in the parisneo/lollms, specifically in the /unInstall_binding endpoint, allows for arbitrary code execution due to insufficient sanitization of user input. The issue arises from the lack of path sanitization when handling the name parameter in the unInstall_binding function, allowing an attacker to traverse directories and execute arbitrary code by loading a malicious __init__.py file. This vulnerability affects the latest version of the software. The exploitation of this vulnerability could lead to remote code execution on the system where parisneo/lollms is deployed.

References

Source: GitHub Advisory Database, used under CC BY 4.0.