Skip to content
RCE Disclosed report Intermediate CVE-2024-3121

Remote Code Execution in create_conda_env function in lollms

The create_conda_env function in lollms used shell=True in subprocess.Popen, allowing command injection through the env_name and python_version parameters. An attacker could execute arbitrary commands, as demonstrated by running 'whoami'.

lollms

Originally disclosed on huntr

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.

From the GitHub Advisory Database (GHSA-79h8-gxhq-q3jg, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

An attacker could execute arbitrary commands on the system, potentially leading to a serious security breach.

What the attacker needed

Access to the create_conda_env function

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a program builds a command line and runs it through a shell, any extra characters in user input can be treated as additional commands. Here, the environment name and Python version were passed into a shell command without proper escaping, so an attacker could add their own commands. This is dangerous because it lets an attacker run anything on the server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from lollms

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.