{"id":"CVE-2026-27966","published":"2026-02-26T01:55:18Z","modified":"2026-02-28T04:55:26Z","title":"Langflow has Remote Code Execution in CSV Agent","vendor":"langflow-ai","product":"langflow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02992,"percentile":0.88056,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/langflow-ai/langflow/security/advisories/GHSA-3645-fxcv-hqr4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/langflow-ai/langflow/commit/d8c6480daa17b2f2af0b5470cdf5c3d28dc9e508","tags":["x_refsource_MISC"]}],"priority":{"score":29.5,"factors":[{"name":"EPSS percentile","points":17.61},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.86}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2026-03-03","earliestUrl":"https://github.com/Anon-Cyber-Team/CVE-2026-27966--RCE-in-Langflow","repos":[{"name":"Anon-Cyber-Team/CVE-2026-27966--RCE-in-Langflow","url":"https://github.com/Anon-Cyber-Team/CVE-2026-27966--RCE-in-Langflow","stars":2,"created":"2026-03-03"},{"name":"shinthink/CVE-2026-27966","url":"https://github.com/shinthink/CVE-2026-27966","stars":2,"created":"2026-07-05"}]},"metasploit":[{"name":"Langflow RCE","module":"exploit/multi/http/langflow_rce_cve_2026_27966","type":"exploit","disclosureDate":"2026-02-25","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/langflow_rce_cve_2026_27966.rb"}],"first":{"date":"2026-02-25","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/langflow_rce_cve_2026_27966.rb"},"provenance":"source"},"vendorSlug":"langflow-ai","affectedVersions":[{"vendor":"langflow-ai","product":"langflow","versions":["< 1.8.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-02-26T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langflow","vulnerableRanges":["<=1.8.0rc2"],"patched":[],"from":["GHSA-3645-fxcv-hqr4","PYSEC-2026-376"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-8819","exploited":false,"provenance":"source"}}