Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
CriticalPublic exploit

Remote Code Execution in Langflow CSV Agent via python_repl_ast Exposure

IdentifiersCVE-2026-27966CWE-94· Improper Control of Generation of…

CVE-2026-27966 is a critical remote code execution vulnerability in Langflow affecting versions prior to 1.8.0. The flaw is in the CSV Agent node, which hardcodes allow_dangerous_code=True. This automatically exposes LangChain’s Python REPL tool, python_repl_ast, to agent execution paths. Because the dangerous-code setting is enabled by default and described as not disableable through the Langflow UI, an attacker can use prompt injection through the Langflow chat interface to cause the agent to execute arbitrary Python code and underlying OS commands on the server. The issue effectively turns prompt input into a path to server-side code execution in deployments where the CSV Agent is reachable.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation results in full server-side remote code execution in the Langflow environment. An attacker can execute arbitrary Python and operating system commands, which can lead to complete compromise of the host running Langflow. Reported consequences include theft of sensitive data, deletion or modification of files, installation of malicious software, and broader loss of confidentiality, integrity, and availability. The provided CVSS v3.1 vector is AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, avoid using the CSV Agent node in any untrusted or prompt-injection-exposed workflow. Restrict access to Langflow to trusted users only using network ACLs and strong authentication/authorization controls. Run Langflow in a hardened, least-privilege sandbox or container environment, such as non-root execution, minimal filesystem permissions, no sensitive host mounts, restricted outbound network access, and platform controls such as seccomp or AppArmor, to reduce the blast radius of exploitation.

Remediation

Patch, then assume compromise.

Upgrade Langflow to version 1.8.0 or later. The fix in 1.8.0 changes the vulnerable behavior so that dangerous code execution is no longer automatically exposed through the CSV Agent node. Where applicable, apply the vendor fix referenced in the Langflow security advisory and associated commit.
PUBLIC EXPLOITS

Exploits

1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.

VALID 1 / 1 TOTALView more in app
CVE-2026-27966--RCE-in-LangflowMaturityPoCVerified exploit

Repository contains a single Python exploit tool (langflow.py) plus a README. The tool is an all-in-one network exploit targeting alleged Langflow RCE (CVE-2026-27966). It supports single-target and mass scanning (threaded), automatic detection of Langflow instances, optional automatic flow creation (to obtain a flow_id when missing), and then remote command execution against the target via Langflow’s HTTP API. Post-exploitation capability is an interactive command loop (“interactive shell”) that repeatedly sends attacker-supplied OS commands and prints cleaned output. Key capabilities implemented in code: - HTTP client with User-Agent rotation and optional proxy support (proxy list loaded from a local file). - Multi-threaded scanning of many targets from an input file; tracks counts of scanned/langflow/vulnerable and stores exploited results. - Exploitation workflow: detect instance → obtain/create flow_id → send crafted request to execute a command → parse/clean response output. - Operator features: debug logging, save vulnerable URLs to an output file, run a single command or interactive shell. Notable endpoints/targets: - The exploit primarily targets user-supplied base URLs (e.g., http(s)://<host>:7860). The README provides example targets and file names (targets.txt). The code also references local file paths for proxy lists and output results. (The specific Langflow API paths used for detection/flow creation/command execution are not visible in the provided truncated snippet, but the structure clearly indicates multiple endpoint checks and a flow-based RCE trigger.)

Anon-Cyber-TeamDisclosed Mar 3, 2026pythonnetwork
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LangflowLangflowapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures1

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity18

Community discussion across Reddit, Mastodon, and other social sources.