CVE-2026-0768: Critical Langflow RCE Vulnerability Under Active Exploitation
CVE-2026-0768 (TL-2026-2270), also tracked as ZDI-26-034, is a critical-severity software vulnerability scored CVSS 9.8, first published 2026-09-01. It is linked to a Russia-nexus actor with low confidence, affects Langflow AI Langflow, references 1 CVE (CVE-2026-0768), maps to 9 MITRE ATT&CK techniques (T1005, T1059.006, T1082), and is covered by 9 detection rules and 13 indicators of compromise.
Key facts for TL-2026-2270
- Threat ID
- TL-2026-2270
- Also known as
- ZDI-26-034, ZDI-CAN-27322
- Severity
- CRITICAL
- CVSS
- 9.8 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
- Status
- ACTIVE
- Category
- VULNERABILITY
- First published
- 2026-09-01
- Last reviewed
- 2026-09-01
- Attribution confidence
- LOW
- Nation-state nexus
- Russia
- Motivation
- UNKNOWN
- Target regions
- united states of america, germany, malaysia, brazil, india
- Detection rules
- 9
- Indicators of compromise
- 13
CVE-2026-0768 (CVSS 9.8) is an unauthenticated remote code execution flaw in Langflow's /api/v1/validate/code endpoint, caused by insufficient validation of a user-supplied 'code' string before it is handed to the Python interpreter, letting an unauthenticated attacker run arbitrary Python as root. VulnCheck canary telemetry recorded a jump from 50+ to 360+ exploitation attempts between 2026-08-30 and 2026-09-01, with attackers (primarily Russia-based network origin) performing reconnaissance and credential harvesting against environment variables, the Langflow secret_key file, SSH access, and bash history.
How CVE-2026-0768 works
CVE-2026-0768 is a critical (CVSS 3.0 base score 9.8) code-injection vulnerability in Langflow, an open-source, Python-based low-code platform for building AI agent and LLM-orchestration workflows. The flaw lives in the code validator behind the platform's custom-component editor, exposed at the unauthenticated POST /api/v1/validate/code REST endpoint (implemented in src/backend/base/langflow/api/v1/validate.py in the Langflow codebase): a user-supplied 'code' string is passed to the Python interpreter for execution without adequate sanitization or sandboxing (CWE-94, Improper Control of Generation of Code). Because the endpoint requires no authentication and the Langflow process typically runs with root privileges in default and containerized deployments, a single crafted HTTP request is sufficient for an attacker to achieve full remote code execution as root. OSV.dev pins the affected release as Langflow 1.4.2 (git commit 4b580d15696334e4e9455cd12506732317d6a185); SecurityWeek and downstream vulnerability databases describe the affected range more broadly as all releases up to and including 1.4.2. Notably, this is not the first code-injection issue at this exact route: a related, prior flaw at the same /api/v1/validate/code endpoint (CVE-2025-3248, missing authentication) was fixed in Langflow 1.3.0 by binding a CurrentActiveUser dependency to the route; CVE-2026-0768 demonstrates that unauthenticated or insufficiently validated code execution remains reachable at this endpoint in later releases. No publicly confirmed patched release exists in the sources reviewed at the time of writing, and Trend Micro's Zero Day Initiative (ZDI) states that restricting network access to the product is the only reliable mitigation until a fix ships.
The vulnerability was originally reported to the Langflow maintainers via GitHub on 2025-07-18 by Trend Research analysts Peter Girnus, William Gamazo Sanchez, and Alfredo Oliveira. After a status inquiry (2025-09-11) and a request for patch details (2025-10-10) went unresolved, ZDI notified the vendor of its intent to publish as an unpatched zero-day (2025-12-10) and released the public advisory ZDI-26-034 (ZDI-CAN-27322) on 2026-01-09, with the CVE formally published in NVD/CVE.org on 2026-01-30.
Active, opportunistic exploitation was confirmed in the wild starting 2026-08-30, when VulnCheck's Canary honeypot network recorded more than 50 exploitation attempts within a few hours; by 2026-09-01 that count had grown to over 360 attempts against VulnCheck's UK-based canaries, with additional targeting confirmed against canaries in Singapore and Israel. Attacker traffic against the canaries originated primarily from Russia-based network sources. Post-exploitation behavior observed on compromised canaries was reconnaissance- and credential-harvesting-focused rather than immediately destructive: attackers queried environment variables including LANGFLOW_SUPERUSER, OPENAI_API*, AWS_ACCESS*, and AWS_SECRET* variants (targeting both the platform's own admin credential and any LLM-provider/cloud credentials configured for agent workflows), read the root-owned secret key at /root/.cache/langflow/secret_key, checked for accessible SSH keys, and inspected the size of .bash_history — consistent with automated triage to identify high-value hosts for follow-on credential theft before deploying further tooling. Notably, EPSS scored CVE-2026-0768 at only ~1.65-2% predicted exploitation probability at the time of these reviewed sources, a sharp underestimate of the observed real-world exploitation volume and a reminder that EPSS alone should not gate patch prioritization for AI-orchestration platforms holding high-value credentials. Vulnerable, internet-exposed Langflow hosts observed in this activity were concentrated in the United States, Germany, Malaysia, Brazil, and India.
CVE-2026-0768 is one entry in a rapidly growing family of Langflow RCE vulnerabilities disclosed and exploited through 2026 (including CVE-2025-3248, CVE-2026-0769, CVE-2026-0770, CVE-2026-5027, CVE-2026-9198, and CVE-2026-33017); VulnCheck notes that whereas only one Langflow vulnerability was known to be exploited in the wild before 2026, at least 11 additional Langflow vulnerabilities have been targeted by attackers during 2026, reflecting sustained adversary interest in self-hosted AI agent/orchestration platforms as a route to both host compromise and theft of the LLM-provider and cloud credentials such platforms routinely hold. The scale of this ecosystem-wide activity is documented independently across multiple reviewed sources: VentureBeat reported roughly 7,000 internet-exposed Langflow instances (concentrated in North America) under active attack via CVE-2026-5027 (path traversal) and related LangGraph (CVE-2025-67644, CVE-2026-28277) and LangChain-core (CVE-2026-34070, CVE-2025-68664) flaws as of 2026-06-19; CISA added a separate, actively-exploited Langflow RCE (CVE-2026-9198, patched in 1.10.1) to its KEV catalog on 2026-08-05 with a two-day federal remediation deadline, after recording 650+ exploitation attempts from 41 countries; and on 2026-08-28 VulnCheck published a dedicated report ('Same Target, Different Playbooks') showing two distinct attacker clusters had together exploited sibling CVEs CVE-2026-5027, CVE-2025-3248, and CVE-2026-0769 more than 15,000 times, deploying a Python credential harvester, the SimpleHelp remote-access tool, cron-based persistence, a Chisel SOCKS5 tunnel, and an XMR cryptominer, with auditd disabled for forensic evasion. Those specific malware/tooling details are attributed by VulnCheck to the sibling CVEs rather than to CVE-2026-0768 itself, but they establish the operational context and canary infrastructure into which the CVE-2026-0768 exploitation wave (2026-08-30 onward) fell. As of the sources reviewed, CVE-2026-0768 itself had not been confirmed as added to the CISA KEV catalog, distinguishing it from sibling Langflow CVEs (e.g., CVE-2026-9198) that CISA has already added under Binding Operational Directive requirements.
MITRE ATT&CK techniques used in TL-2026-2270
Collection
Execution
Discovery
T1082 System Information Discovery
Initial Access
T1190 Exploit Public-Facing Application
Credential Access
T1552 Unsecured Credentials; T1552.001 Credentials In Files; T1552.003 Shell History; T1552.004 Private Keys
Reconnaissance
Affected products and versions in CVE-2026-0768
- Langflow AI — Langflow
Vulnerable versions: <=1.4.2; 1.4.2-NA
Remediation for CVE-2026-0768
Immediate actions
- Restrict network access to the Langflow management interface and the /api/v1/validate/code endpoint to trusted hosts only; ZDI states this is currently the only salient mitigation
- Place any internet-exposed Langflow deployment behind an authenticating reverse proxy, since the vulnerable endpoint itself requires no authentication
- Rotate the Langflow secret_key, LANGFLOW_SUPERUSER credential, and any OpenAI/AWS or other LLM-provider and cloud credentials accessible to the Langflow process on exposed hosts
- Review Langflow access logs and host artifacts (.bash_history size, SSH authorized_keys, /root/.cache/langflow/secret_key access times) for signs of the recon/credential-harvesting activity described by VulnCheck
- Alert on HTTP requests to the validate endpoint containing Python patterns such as import, subprocess, eval, or exec, and on unexpected root-level child processes spawned by the Langflow service
Workarounds
- Disable or firewall the /api/v1/validate/code custom-component validation endpoint entirely if the feature is not required
- Do not expose Langflow directly to the internet; require VPN or authenticated proxy access
Longer-term hardening
- Run Langflow as a non-root user in an isolated container with no direct access to cloud or LLM-provider credentials
- Deploy a WAF or reverse-proxy rule to block/alert on requests to the validate-code endpoint from untrusted sources
- Track VulnCheck and CISA KEV for a confirmed patched Langflow release addressing CVE-2026-0768 and apply it as soon as available
- Inventory all internet-facing Langflow, LangGraph, and LangChain deployments given the broader 2026 pattern of RCE disclosures across the Langflow/LangChain ecosystem
- Do not rely on EPSS score alone to prioritize patching for AI-orchestration platforms; CVE-2026-0768's low EPSS (~1.65-2%) badly understated its observed exploitation volume
CVEs associated with CVE-2026-0768
CVE-2026-0768
Weaknesses (CWE) in CVE-2026-0768
CWE-94
Timeline of CVE-2026-0768
- Trend Research (Peter Girnus, William Gamazo Sanchez, Alfredo Oliveira) reports the validate-endpoint code injection flaw to Langflow maintainers via GitHub.
- Zero Day Initiative sends a status inquiry to the vendor after no response.
- ZDI requests patch details from the vendor.
- ZDI notifies the vendor of its intent to publish the advisory as an unpatched zero-day.
- ZDI publishes advisory ZDI-26-034 (ZDI-CAN-27322) disclosing CVE-2026-0768 as an unpatched zero-day.
- CVE-2026-0768 is formally published in NVD/CVE.org with CVSS 9.8 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
- VentureBeat reports roughly 7,000 internet-exposed Langflow servers under active attack via sibling vulnerabilities (path traversal CVE-2026-5027, missing-auth CVE-2025-3248) alongside related LangGraph and LangChain-core flaws, establishing the broader Langflow/LangChain ecosystem exploitation trend that preceded CVE-2026-0768's own exploitation wave.
- CISA adds a separate, actively-exploited Langflow RCE (CVE-2026-9198, patched in Langflow 1.10.1) to its Known Exploited Vulnerabilities catalog after 650+ exploitation attempts from 41 countries, with a two-day federal remediation deadline; CVE-2026-0768 itself is not confirmed in KEV as of the sources reviewed.
- VulnCheck publishes 'Same Target, Different Playbooks,' documenting two distinct attacker clusters (a credential-theft operation deploying a Python harvester and SimpleHelp RAT, and a cryptomining operation using Chisel tunneling and an XMR miner) that together exploited sibling Langflow CVEs CVE-2026-5027, CVE-2025-3248, and CVE-2026-0769 more than 15,000 times via the same canary infrastructure that would soon detect CVE-2026-0768 exploitation.
- VulnCheck Canary honeypots record 50+ exploitation attempts against CVE-2026-0768 within a few hours.
- VulnCheck reports 360+ cumulative exploitation attempts against UK-based canaries (with additional targeting confirmed against Singapore and Israel); SecurityWeek and The Hacker News confirm active reconnaissance and credential-harvesting exploitation of CVE-2026-0768 in the wild, primarily from Russia-based network sources.
Sources cited for CVE-2026-0768
- Hackers Start Exploiting Critical Langflow Vulnerability
- ZDI-26-034: Langflow validate Endpoint Code Injection Remote Code Execution Vulnerability
- NVD - CVE-2026-0768 Detail
- CVE-2026-0768: Langflow Code Injection RCE Vulnerability
- OSV.dev - CVE-2026-0768
- CVE Record - CVE-2026-0768
- Attackers Exploit Critical Langflow and Rails Flaws in Credential-Harvesting Campaign
- 7,000 Langflow servers are under attack. LangGraph and LangChain have the same holes
- CISA Flags Langflow RCE, Tomcat, and N-central Flaws as Actively Exploited
- Same Target, Different Playbooks: Two Attackers, Two Different Paths to Pwning the AI Stack
- GHSA-c995-4fw3-j39m: Langflow Vulnerable to Code Injection via the /api/v1/validate/code endpoint
More in vulnerability
- Zyxel GS1900 Series Switches Stack-Based Buffer Overflow (CVE-2026-7273) Actively Exploited by Kapibala/Red Heron in Global 996-Device Campaign — Added to CISA KEV
- Click2Shell: WordPress Theme-Preview CSRF/Selector-Injection Chain to Forced Theme Install
- F5 BIG-IP DNS Denial of Service via BIND DNSSEC Random Subdomain Attack (CVE-2026-11622)
- Click2Shell WordPress Exploit Chain Lets Attackers Gain RCE With a Single Malicious Link
- SolarWinds Access Rights Manager Hard-Coded Cryptographic Key (CVE-2026-28326) Enables Unauthenticated RCE
Detection coverage for TL-2026-2270
As of 2026-09-01, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-2270 across Splunk SPL, Microsoft KQL and Sigma, covering 13 indicator(s) of compromise. The whole corpus is readable without an account; a free account unlocks full detection query text in Splunk SPL, Microsoft KQL and Sigma; paid tiers add raw indicator values, correlation and the MCP server. Threadlinqs MCP server · View plans.