Exploit database

Vulnerability

CVE-2026-27966

Langflow has Remote Code Execution in CSV Agent

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to version 1.8.0, the CSV Agent node in Langflow hardcodes `allow_dangerous_code=True`, which automatically exposes LangChain’s Python REPL tool (`python_repl_ast`). As a result, an attacker can execute arbitrary Python and OS commands on the server via prompt injection, leading to full Remote Code Execution (RCE). Version 1.8.0 fixes the issue.

CVE Program

Exploit source choices

3 sources
Langflow RCE
MSF-multi--http--langflow_rce_cve_2026_27966MetasploitLinux,Python,Unix / remotePreferred

The CSV Agent node in Langflow hardcodes allow_dangerous_code=True, which automatically exposes LangChain's Python REPL tool (python_repl_ast). As a result, an attacker can execute arbitrary Python and OS commands on the server via prompt injection, leading to full Remote Code Execution (RCE).

2026-02-25langflow_rce_cve_2026_27966.rb
shinthink/cve-2026-27966
GH-611503f320164b25f1cdd91dfc902a73GitHubUnofficial GitHub source

Pre-auth RCE scanner for Langflow < 1.8.0 — Route Injection + Vertex Injection → Code Execution (CVSS 9.8)

2026-07-054 files · 2 stars