Description
Langflow code Code Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Langflow. Authentication is not required to exploit this vulnerability.
The specific flaw exists within the handling of the code parameter provided to the validate endpoint. The issue results from the lack of proper validation of a user-supplied string before using it to execute Python code. An attacker can leverage this vulnerability to execute code in the context of root.
. Was ZDI-CAN-27322.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Langflow | Langflow | 1.4.2 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Langflow AI Validate Code Injection unauth RCE
exploit/multi/http/langflow_unauth_rce_cve_2026_0768
GitHub 2 repositories
-
rmhowe425/POC-CVE-2026-0768 ★ 0 · Sep 2, 2026
Proof of concept exploit code for CVE-2026-0768
-
HORKimhab/CVE-2026-0768 ★ 0 · Sep 1, 2026
CVE-2026-0768 - Draft or TODO
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Langflow <=1.2.x - Unauthenticated Remote Code Execution via validate_code http/cves/2026/CVE-2026-0768.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Advisories 1
- WID-SEC-2026-3164 Langflow: Schwachstelle ermöglicht Ausführen von beliebigem Programmcode mit Administratorrechten BSI CERT-Bund (WID) · Sep 2, 2026