Description
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).
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/multi/http/langflow_rce_cve_2026_27966msf undefined(langflow_rce_cve_2026_27966) > show actions ...actions...msf undefined(langflow_rce_cve_2026_27966) > set ACTION < action-name >msf undefined(langflow_rce_cve_2026_27966) > show options ...show and set options...msf undefined(langflow_rce_cve_2026_27966) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub