# CVE-2026-27966: Langflow has Remote Code Execution in CSV Agent

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 35.3%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-26T01:55:18.580Z
- Modified: 2026-10-27T17:45:03.935Z
- Also known as: GHSA-3645-fxcv-hqr4, PYSEC-2026-376
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- langflow-ai langflow: < 1.8.0
- langflow (PyPI): up to 1.8.0rc2
- langflow langflow: before 1.8.0

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/langflow-ai/langflow/security/advisories/GHSA-3645-fxcv-hqr4> (exploit, vendor-advisory, web)
- <https://github.com/langflow-ai/langflow/commit/d8c6480daa17b2f2af0b5470cdf5c3d28dc9e508> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-27966> (advisory)
- <https://github.com/langflow-ai/langflow> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langflow/PYSEC-2026-376.yaml> (web)
- <https://pypi.org/project/langflow> (package, web)
- <https://github.com/advisories/GHSA-3645-fxcv-hqr4> (advisory)

## Sources

- CVE List: [CVE-2026-27966](https://www.cve.org/CVERecord?id=CVE-2026-27966), CVE Terms of Use, modified 2026-02-28
- GitHub Advisory Database: [GHSA-3645-fxcv-hqr4](https://github.com/advisories/GHSA-3645-fxcv-hqr4), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-27966](https://nvd.nist.gov/vuln/detail/CVE-2026-27966), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-376](https://osv.dev/vulnerability/PYSEC-2026-376), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2026-27966 · Whole record: https://cve.day/CVE-2026-27966.json · Rebuilt by cve.day 2026-11-25T22:59:14.944Z
