PT-2024-23853 · Unknown · Parisneo/Lollms
Published
2024-06-24
·
Updated
2024-09-13
·
CVE-2024-3121
CVSS v3.1
6.8
Medium
| Vector | AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
parisneo/lollms version 5.9.0
Description
A remote code execution issue exists in the
create conda env function due to the use of shell=True in the subprocess.Popen function. This allows an attacker to inject arbitrary commands by manipulating the env name and python version parameters, potentially leading to a serious security breach. The vulnerability is demonstrated by the ability to execute the 'whoami' command, among other potentially harmful commands.Recommendations
For version 5.9.0, consider disabling the
create conda env function until a patch is available to prevent exploitation. Restrict access to the subprocess.Popen function with shell=True to minimize the risk of arbitrary command injection. Avoid using the env name and python version parameters in the affected function until the issue is resolved.Exploit
Fix
Code Injection
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Parisneo/Lollms