Skip to content
vulnerabilitycredential-theftllm-securityAgentic AI

Langflow and Rails under fire: AI development infrastructure is the new attack surface

4 min read
Share

Langflow and Rails under fire: AI development infrastructure is the new attack surface

Two actively exploited vulnerabilities disclosed this week share a common thread that is worth naming clearly: attackers are now treating AI development infrastructure as a high-value target. The vulnerabilities are serious on their own. The pattern they represent is what deserves the attention.

The vulnerabilities

CVE-2026-0768 affects Langflow, the popular open-source platform for building LLM-powered workflows and agents. The flaw is in Langflow's custom component editor: the code validator that allows developers to write and test Python code within the interface does not properly validate user-supplied input. An unauthenticated attacker can send a crafted request to execute arbitrary Python code in the context of the root user. CVSS 9.8. No authentication required.

CVE-2026-66066, nicknamed KindaRails2Shell by researchers, affects Ruby on Rails. The vulnerability allows an unauthenticated attacker to read arbitrary files from the server and leak Rails process environment variables, including secret_key_base, the Rails master key, database passwords, cloud storage credentials, and API tokens. With secret_key_base, an attacker can forge signed cookies and escalate to remote code execution. CVSS 9.5.

What the exploitation looks like

VulnCheck recorded more than 50 detections within a few hours of August 30, rising to 360 detections by September 1. Attacker source traffic is primarily from Russian IP ranges. The campaign pattern shows reconnaissance and credential harvesting: queries for environment variables, reading secrets files, establishing C2 footholds.

The combination of Langflow and Rails exploitation in the same campaign window is not coincidental. Many AI development environments run Langflow alongside Rails-based web applications or APIs. An attacker who compromises a Langflow instance via CVE-2026-0768 can pivot to connected infrastructure. An attacker who harvests Rails secrets via CVE-2026-66066 can potentially access the same cloud environment where AI workloads run.

The credential harvesting focus matters because cloud credentials stolen from a development environment often have access to production resources. AI pipelines frequently run with broad cloud permissions: object storage for model artifacts, inference endpoints, vector databases, API keys for third-party AI services.

Why AI developer tooling is a target

This is the part that matters beyond this week's patch advisory.

AI development has moved fast. Teams stand up Langflow instances, connect them to OpenAI or Anthropic APIs, store embeddings in vector databases, and build agent workflows, often without the same security rigor applied to customer-facing production systems. Langflow is frequently installed with network access broader than intended because developers need to share access across a team.

The result is an attack surface that is often under-monitored, under-patched, and over-privileged. An attacker who compromises an AI development environment does not just get a developer workstation. They get API keys, model access, training data, and potentially a pathway to production systems.

Langflow is one example. The same analysis applies to other AI workflow tools, vector database interfaces, model hosting platforms, and LLM proxy services that have proliferated in AI development environments over the last two years.

Immediate steps

For Langflow: patch to the version that addresses CVE-2026-0768 immediately. Treat any exposed Langflow instance as potentially compromised. Rotate all API keys and credentials accessible from the environment. Audit network access to restrict the management interface to trusted networks.

For Ruby on Rails: apply the patch for CVE-2026-66066. Rotate secret_key_base and all credentials readable from the server environment. Audit sessions and signed cookies for signs of forgery in the last 72 hours.

For the broader AI development environment: conduct an inventory of AI development tooling accessible from the network. Apply the same patch and access control discipline you would to production systems.

Gigia Tsiklauri is a Security Architect and founder of Infosec.ge. Get in touch you need help reviewing your AI development environment's security posture.