Vulnerability · Published Jun 24, 2024 · Assigned by @huntr_ai

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

Medium 6.8

In plain English

A medium-severity code injection in parisneo/lollms from parisneo. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.

Severity (CVSS 3.0)6.8Medium
Exploit odds (30 days)0.4%top 61.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIlollmsno fix listedGHSA-79h8-gxhq-q3jg
PyPIlollmsno fix listedPYSEC-2026-1584

Affected products (as reported)

VendorProductVersions
parisneo parisneo/lollms unspecified – through latest

Weakness: CWE-94 · Vector: CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References