Attackers Exploit Critical Langflow and Rails Flaws in Credential-Probing and C2 Activity
Attackers are actively exploiting critical vulnerabilities in Langflow and Ruby on Rails, leading to credential harvesting and command-and-control activity.
Intelligence analysis by Gemini 2.5 Flash Lite

Two critical flaws, CVE-2026-0768 in Langflow and CVE-2026-66066 in Ruby on Rails, are being exploited by threat actors. These vulnerabilities allow for arbitrary code execution and sensitive data leakage, including API tokens and cloud credentials.
Imagine two important tools for building computer programs are broken. One tool, for making smart computer helpers (AI), lets bad guys steal secret codes and passwords. The other tool, for building websites, lets them read secret files and also steal codes. Bad guys are using these broken tools to break into computers and steal information.
Analysis
CVE-2026-0768 and Langflow
The vulnerability CVE-2026-0768, with a CVSS score of 9.8, resides within Langflow, an open-source tool for developing and managing LLM applications. This flaw stems from a lack of proper validation of user-supplied input, which attackers can leverage to execute arbitrary Python code with root privileges. This level of access is extremely dangerous, as it allows for complete compromise of the affected system.
VulnCheck's research indicates that threat actors are actively probing for and exploiting this vulnerability. Their observed activities include querying environment variables such as LANGFLOW_SUPERUSER, OPENAI_API*, and AWS_ACCESS*, as well as attempting to read sensitive files like /root/.cache/langflow/secret_key. This suggests a clear motive of credential harvesting and potentially gaining further access to cloud infrastructure.
CVE-2026-66066 and Ruby on Rails
Dubbed KindaRails2Shell, CVE-2026-66066 is a critical vulnerability in Ruby on Rails, rated at CVSS 9.5. It enables unauthenticated attackers to read arbitrary files from the server. More critically, it can leak sensitive information from the Rails process environment, including secret_key_base, the master key, database passwords, cloud storage credentials, and API tokens. This information leakage can ultimately pave the way for remote code execution.
The exploitation vector for CVE-2026-66066 involves crafting a malicious image upload. This is achieved by exploiting a discrepancy in how Active Storage and the libvips library process input files. Successful exploitation requires applications to use libvips for image processing via Active Storage and accept uploads from untrusted users. Even patched versions of Rails might remain vulnerable to certain aspects of the attack, specifically the Marshal deserialization, if a valid signature is present.
Threat Actor Activity and Scope
VulnCheck observed a significant surge in exploitation attempts shortly after the vulnerabilities were disclosed, with hundreds of detections recorded within days. The source of this malicious traffic has primarily been traced to Russia, with initial targets identified as 'canaries' in the UK. The scope of exploitation is broad, with vulnerable Langflow hosts identified across the U.S., Germany, Malaysia, Brazil, and India. In some observed instances, attackers have deployed Python credential harvesters, proxy agents, and remote access tools like SimpleHelp. Other attacks have weaponized similar vulnerabilities to enlist compromised machines into XMR cryptocurrency mining botnets, often disabling auditing tools to cover their tracks.
The findings underscore a heightened interest from threat actors in AI development platforms, recognizing their potential as gateways to valuable credentials, cloud environments, and interconnected systems. The active exploitation of these flaws presents a clear and present danger to organizations relying on these technologies.
Key points
- Critical vulnerabilities in Langflow (CVE-2026-0768) and Ruby on Rails (CVE-2026-66066) are being actively exploited.
- The flaws allow for arbitrary code execution, credential harvesting, and sensitive data leakage, including API keys and cloud secrets.
- Attackers are targeting AI development platforms and web frameworks to gain access to cloud environments.
- Exploitation attempts have surged rapidly, with traffic originating primarily from Russia.
- Vulnerable Langflow instances are widespread across the US, Germany, India, Brazil, and Malaysia.
The rapid detection and reporting of these vulnerabilities by VulnCheck, coupled with the swift patching efforts by developers, could mitigate widespread damage. Increased awareness among developers and users of Langflow and Ruby on Rails may lead to more robust security practices and proactive defense mechanisms against future attacks.
The active and widespread exploitation of these critical vulnerabilities, even after patches are released, indicates a significant risk of ongoing compromises. The potential for attackers to gain deep access to cloud credentials and execute arbitrary code could lead to extensive data breaches and system takeovers.



