CVE-2024-3121 Remote Code Execution in create_conda_env function in parisneo/lollms
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.
Which versions are affected by CVE-2024-3121?
3 open source packages ship an affected version, including lollms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
lollms PyPI | All versions to 9.5.1 | None |
lollms PyPI | All versions to 9.5.1 | None |
lollms PyPI | All versions to 9.5.1 | None |
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.
Other vulnerabilities in parisneo/lollms
- CVE-2026-1114 Improper Access Control via Weak JWT Token in parisneo/lollms
- CVE-2024-3429 Path Traversal in parisneo/lollms
- CVE-2026-1115 Stored XSS in parisneo/lollms
- CVE-2026-12228 Stored XSS in Direct Messages via Prompt Sharing in parisneo/lollms
- CVE-2026-0562 Insecure Direct Object Reference (IDOR) in parisneo/lollms
Sources
Also known as GHSA-79h8-gxhq-q3jg, PYSEC-2026-1584.