目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1310

100%

CVE-2024-3121 PoC — LoLLMs 代码注入漏洞

来源
关联漏洞
标题:LoLLMs 代码注入漏洞 (CVE-2024-3121)
Description:LoLLMs是Saifeddine ALOUI个人开发者的一个大型语言多模式系统的 Web UI。 LoLLMs 5.9.0版本存在代码注入漏洞,该漏洞源于存在远程代码执行漏洞,允许攻击者通过env_name和python_version参数注入任意命令。
Description
Remote Code Execution in create_conda_env function in parisneo/lollms
介绍
# CVE-2024-3121 - Remote Code Execution (RCE) in `parisneo/lollms`

**Discovered by:** Syed Jan Muhammad Zaidi  
**GitHub:** [dark-ninja10](https://github.com/dark-ninja10)  
**CVE ID:** CVE-2024-3121  
**Repository Affected:** [parisneo/lollms](https://github.com/ParisNeo/lollms)

---

## 🧨 Vulnerability Summary

A **Remote Code Execution (RCE)** vulnerability exists in the `create_conda_env` function of the `lollms` framework. This function constructs a system command using unsanitized input, allowing attackers to inject arbitrary commands and gain code execution on the host.

---

## 🔥 Impact

An attacker with access to the `env_name` input parameter can execute arbitrary OS-level commands. This can result in:

- Complete system compromise  
- Unauthorized data access or modification  
- Installation of backdoors, malware, or crypto miners  
- Lateral movement within the network

---

## 💣 Vulnerable Code

```python
process = subprocess.Popen(f'{conda_path} create --name {env_name} python={python_version} -y', shell=True)
```

Issue: The env_name variable is directly interpolated into a shell command without input validation or escaping, making it susceptible to shell injection.

## 🏷️ References
[CVE-2024-3121 - NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-3121)

[parisneo/lollms](https://github.com/ParisNeo/lollms)

[Full Huntr report](https://huntr.com/bounties/db57c343-9b80-4c1c-9ab0-9eef92c9b27b)
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →