Skip to content

Remote Code Execution in create_conda_env function in lollms

Moderate severity GitHub Reviewed Published Jun 24, 2024 to the GitHub Advisory Database • Updated Jun 24, 2024

Package

pip lollms (pip)

Affected versions

<= 9.5.1

Patched versions

None

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.

References

Published by the National Vulnerability Database Jun 24, 2024
Published to the GitHub Advisory Database Jun 24, 2024
Last updated Jun 24, 2024
Reviewed Jun 24, 2024

Severity

Moderate
6.8
/ 10

CVSS base metrics

Attack vector
Physical
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2024-3121

GHSA ID

GHSA-79h8-gxhq-q3jg

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.