GitHub Advisoryadvisory · PyPI

GHSA-79h8-gxhq-q3jg Remote Code Execution in create_conda_env function in lollms

MEDIUM Published 2024-06-24 Modified 2024-06-24 Official page ↗
Aliases
CVE-2024-3121
Ecosystem
PyPI
Packages
lollms
Severity
Moderate
CVSS vector
CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-78, CWE-94
Reviewed
2024-06-24

Affected packages

• PyPI lollms: <= 9.5.1 (no fix yet)

Description

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.

Related

Alias · CVE (1)

  • CVE-2024-3121 A remote code execution vulnerability exists in the create_conda_env function of the parisneo/lollms repository, version 5.9.0. vulnerability

Weakness · CWE (2)

  • CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness
  • CWE-94 Improper Control of Generation of Code weakness

References