CVE-2026-0768: Langflow Critical RCE Under Active Exploitation for Credential Harvesting
Date: 2026-09-05
Tags: malicious-tool, llmjacking
Executive Summary
CVE-2026-0768, a critical CVSS 9.8 vulnerability published as a 0-day advisory by ZDI on January 9, 2026, resides in the validate endpoint of Langflow's custom component editor, allowing unauthenticated remote code execution by passing a user-supplied code parameter to Python's exec() function without sanitization. As of September 1, 2026, VulnCheck confirms active exploitation of this vulnerability. Attackers are systematically targeting Langflow to harvest credentials, with observed attacker behavior characterized by quiet, persistent credential extraction, querying environment variables and targeting sensitive files, including /root/.cache/langflow/secret_key.
Campaign Summary
| Field | Detail |
|---|---|
| Campaign / Malware | Langflow Credential Harvesting Campaign |
| Attribution | Unknown, Russia-attributed traffic observed (confidence: low) |
| Target | Organizations running internet-exposed Langflow instances for AI application development |
| Vector | Unauthenticated RCE via /validate endpoint in custom component editor |
| Status | active |
| First Observed | 2026-09-01 |
Detailed Findings
The flaw allows unauthenticated remote code execution by passing a user-supplied code parameter to Python's exec() function without sanitization, with the exposure significantly compounded by Langflow's default auto-login feature, which frequently leaves these instances accessible to the public internet without any authentication requirement. Attackers appear to be carrying out reconnaissance and stealing credentials, checking environment variables such as Langflow, OpenAI and AWS keys, reading Langflow's secret key, and looking for SSH access and shell history. Observed commands attempted to retrieve environment variables associated with Langflow administration, OpenAI APIs, and AWS cloud access, with these checks helping an intruder identify administrator activity, stolen credentials, cloud resources, and possible routes for lateral movement. Threat actors have exploited as many as 12 Langflow vulnerabilities since 2025, with more than 15,000 successful attempts leveraging CVE-2026-0769, CVE-2025-3248, and CVE-2026-5027, with the majority of the vulnerable Langflow hosts located in the U.S., Germany, Malaysia, Brazil, and India.
MITRE ATT&CK Mapping
| Technique | ID | Context |
|---|---|---|
| Remote Code Execution | T1190 | Unauthenticated exec() injection via /validate endpoint achieves RCE |
| Credential Dumping | T1003 | Harvesting environment variables, AWS keys, OpenAI API keys, and SSH credentials |
IOCs
Domains
_No specific payloads or C2 IOCs published; exploitation is generic credential enumeration_
Full URL Paths
_No specific payloads or C2 IOCs published; exploitation is generic credential enumeration_
Splunk Format
_No IOCs available for Splunk query_
Affected Platforms
Langflow cloud deployments
Self-hosted Langflow instances
Detection Recommendations
Immediately identify and inventory all internet-exposed Langflow instances; apply vendor patches or mitigations urgently; rotate any exposed OpenAI and AWS credentials; review environment variables and local secret files (/root/.cache/langflow/secret_key) for signs of unauthorized access; implement network-level access controls restricting Langflow instances to trusted networks only. Monitor for POST requests to /validate endpoints with code parameters containing suspicious Python imports or exec calls.
References
- [Forkast News] Langflow's 12th Exploited CVE Confirms AI Frameworks Are Now Credential Harvesting Infrastructure (2026-09-03) — https://forkast.news/langflows-12th-exploited-cve-confirms-ai-frameworks-are-now-credential-harvesting-infrastructure/
- [CyberSecurityNews] Hackers Actively Exploiting Critical Langflow RCE and Rails Vulnerability (2026-09-02) — https://cybersecuritynews.com/langflow-rce-and-rails-vulnerability-exploited/
- [SecurityWeek] Hackers Start Exploiting Critical Langflow Vulnerability (2026-09-02) — https://www.securityweek.com/hackers-start-exploiting-critical-langflow-vulnerability/
- [Dark Reading] Critical Langflow Flaw Exploited as Attacks on AI Platform Rise (2026-09-03) — https://www.darkreading.com/vulnerabilities-threats/critical-langflow-flaw-exploited-attacks-rise
- [The Hacker News] Attackers Exploit Critical Langflow and Rails Flaws in Credential-Probing and C2 Activity (2026-09-03) — https://thehackernews.com/2026/09/attackers-exploit-critical-langflow-and.html