Langflow
Langflow code Code Injection Remote Code Execution Vulnerability
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- 1.4.2
Mitigation
The record names no fix. Check the vendor advisory below.
Timeline
Days relative to CVE publicationFirst public PoC 221 days after publication; not in CISA KEV. First PoC: HORKimhab/CVE-2026-0768 (created 1 Sep 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| HORKimhab/CVE-2026-0768 | 1 Sep 2026 +221 d | 0 | PoC |
| rmhowe425/POC-CVE-2026-0768 | 2 Sep 2026 +223 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit exploit: Langflow AI Validate Code Injection unauth RCE (exploit/multi/http/langflow_unauth_rce_cve_2026_0768) | unknown | 14 Nov 2026 |
| nuclei template | nuclei template: Langflow <=1.2.x - Unauthenticated Remote Code Execution via validate_code | unknown | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 2 PoC reposPOST /api/v1/validate/code
- Body markers
"code""code":"def test(): pass""code":"def exploit(x=__import__('os').system('id')): pass"inapplication/json- Ports
- 7860
- Seen in
- 1 repo: HORKimhab/CVE-2026-0768
- Evidence
- HORKimhab/CVE-2026-0768/CVE-2026-0768-exploitintel/README.md:191 HORKimhab/CVE-2026-0768/CVE-2026-0768-exploitintel/intel_brief.md:153 HORKimhab/CVE-2026-0768/CVE-2026-0768-exploitintel/intel_brief.md:83 HORKimhab/CVE-2026-0768/CVE-2026-0768-exploitintel/lab_build_report.md:106 HORKimhab/CVE-2026-0768/CVE-2026-0768-exploitintel/lab_build_report.md:142 HORKimhab/CVE-2026-0768/CVE-2026-0768-exploitintel/vulnerability_analysis.md:65
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/v1/validate/code(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [7860] (msg:"GG PoC-Monitor CVE-2026-0768 Langflow Langflow exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/v1/validate/code"; http.request_body; content:"|22|code|22|"; http.request_body; content:"|22|code|22|:|22|def test(): pass|22|"; http.request_body; content:"|22|code|22|:|22|def exploit(x=__import__('os').system('id')): pass|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-0768; classtype:web-application-attack; sid:9817242; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Langflow Langflow exploit attempt (CVE-2026-0768)
id: gg-pocmon-cve-2026-0768-9817242
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-0768. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-0768
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/v1/validate/code'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.0768