Remote Code Execution in create_conda_env function in lollms
Moderate severity
GitHub Reviewed
Published
Jun 24, 2024
to the GitHub Advisory Database
•
Updated Sep 13, 2024
Description
Published by the National Vulnerability Database
Jun 24, 2024
Published to the GitHub Advisory Database
Jun 24, 2024
Reviewed
Jun 24, 2024
Last updated
Sep 13, 2024
A remote code execution vulnerability exists in the create_conda_env function of the parisneo/lollms repository. The vulnerability arises from the use of shell=True in the subprocess.Popen function, which allows an attacker to inject arbitrary commands by manipulating the env_name and python_version parameters. This issue could lead to a serious security breach as demonstrated by the ability to execute the 'whoami' command among potentially other harmful commands.
References