Browse / AI Framework and Platform Flaws / CVE-2024-3121
Remote Code Execution in create_conda_env function in lollms
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Code and command execution
- Affected
- lollms (PyPI)
- CVSS
- CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 0.4% chance of exploitation in 30 days
How it works, in short
The environment name and Python version parameters are interpolated into a shell command run with shell=True, letting an attacker append arbitrary commands. (Our summary, written by a model. The source text is below.)
Details
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
- https://nvd.nist.gov/vuln/detail/CVE-2024-3121
- https://github.com/ParisNeo/lollms
- https://huntr.com/bounties/db57c343-9b80-4c1c-9ab0-9eef92c9b27b
Source: GitHub Advisory Database, used under CC BY 4.0.