CVE-2024-3121 Remote Code Execution in create_conda_env function in parisneo/lollms

Medium 6.8 Published Updated

Attackers can execute arbitrary commands via the create_conda_env function due to unsafe shell execution, affecting users of the lollms library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-3121?

CVE-2024-3121 is a medium-severity command injection vulnerability in parisneo/lollms, published on 24 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A remote code execution vulnerability exists in the create_conda_env function of the parisneo/lollms repository, version 5.9.0. 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.

Weakness: CWE-78, CWE-94

Which versions are affected by CVE-2024-3121?

3 open source packages ship an affected version, including lollms. It affects 1 product.

PackageAffectedFixed in
lollms PyPIAll versions to 9.5.1None
lollms PyPIAll versions to 9.5.1None
lollms PyPIAll versions to 9.5.1None

Products include Lollms Lollms.

How do I fix CVE-2024-3121?

No fix has been published for CVE-2024-3121 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2024-3121 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-3121 exists.

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-79h8-gxhq-q3jg, PYSEC-2026-1584.

Is CVE-2024-3121 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free