Attackers are emptying OpenAI and AWS keys out of self-hosted Langflow servers — and the lesson is about where AI risk actually lives
TL;DR: Since 29 August 2026, attackers have been mass-exploiting CVE-2026-0768 — a CVSS 9.8 unauthenticated remote code execution flaw in Langflow, the open-source visual builder for AI applications. VulnCheck’s UK honeypots logged 50+ hits within hours and over 360 within days, from roughly 20 source IPs across six countries, traffic mainly from Russia. What they do on arrival: not ransomware. They read environment variables for LANGFLOW_SUPERUSER, OPENAI_API* and AWS_ACCESS*, grab the cached Langflow secret key, and check .ssh and .bash_history. Why it matters: the flaw was disclosed in January 2026 and the fix has existed for months. This is not a zero-day; it is an ownership gap. The most exposed part of most AI stacks is not the model vendor — it is the self-hosted orchestration glue that got installed for a prototype and silently became production. For you: if you run Langflow on a public IP, assume compromise. Rotate keys first, then patch — the reverse order leaves an attacker holding valid credentials against a patched box.
What is being exploited
Langflow is an open-source framework for building AI applications by wiring components together visually — a popular way to prototype retrieval pipelines and agents without writing the orchestration by hand. Because it exists to connect models to data, a Langflow instance is, almost by definition, a place where provider API keys and cloud credentials are kept close together.
CVE-2026-0768 sits in the code validator inside Langflow’s custom component editor. Trend Micro’s Zero Day Initiative describes the defect as a lack of proper validation of a user-supplied string before it is used to execute Python code. The consequence is complete: an unauthenticated attacker who can reach the endpoint executes arbitrary Python as root. It carries a CVSS score of 9.8 and affects releases up to and including 1.4.2.
The disclosure timeline is the uncomfortable part. It was reported through ZDI in July 2025 and publicly disclosed in January 2026. Mass exploitation began on 29 August 2026 — roughly eight months after the world was told.
VulnCheck’s threat intelligence caught the wave on honeypots in the United Kingdom: more than 50 detections within hours on 30 August, climbing past 360 by the following Monday, from about 20 source IPs spanning more than six countries. The firm’s researchers noted that traffic originated primarily from Russia. Notably, no public proof-of-concept was known at the time of reporting, which implies either a targeted campaign or private weaponisation of the advisory — either way, a reminder that “no PoC published” is not a defence.
Vulnerable instances are concentrated in the United States, Germany, Malaysia, Brazil and India.
The payload is a shopping list
What makes this incident worth an AI buyer’s attention is not the vulnerability class — unauthenticated RCE in a web app is an old story — but what the attackers went looking for once inside.
They queried environment variables for:
LANGFLOW_SUPERUSER— the application’s own administrative credentialsOPENAI_API*— provider API keysAWS_ACCESS*— cloud credentials
They read the cached Langflow secret key at /root/.cache/langflow/secret_key, which unlocks stored credentials inside the application itself. They enumerated .ssh directories for lateral movement and paged through .bash_history for whatever had been typed in the clear. They pulled .env files and Langflow’s own source.
Nothing was encrypted. No extortion note. This is reconnaissance and credential harvesting, and the reason is straightforward economics. A stolen AI provider key is a bearer credential against a funded account — no device binding, no session to revoke, frequently no spending cap. It can be spent on inference or resold within the hour, and the loss surfaces on a billing dashboard rather than in a security alert. Reported post-exploitation activity across the broader Langflow campaign matches that read: credential harvesters, cryptocurrency miners and remote access tools.
This is the same shift we described when Anthropic signed users out of Claude after infostealer malware replayed their sessions. The target has moved from your data to your paid capacity. Your AI subscription is a credential, your API key is money, and both are now worth more to a certain class of attacker than the documents sitting next to them.
Langflow’s broader record
This is not an isolated bad week. Reporting on the current wave counts twelve Langflow vulnerabilities exploited since 2025, and three of them — CVE-2026-0769, CVE-2025-3248 and CVE-2026-5027 — account for more than 15,000 successful exploitation attempts between them. Six further Langflow CVEs were added to VulnCheck’s known-exploited catalogue this year alone.
That pattern should shape the response. Upgrading to the exact version that closes CVE-2026-0768 and stopping there would be treating a symptom on a project with a demonstrated history of exploited flaws. Coverage of the current wave points to 1.11.6 as the appropriate target, which also resolves five other disclosed CVEs in one move. (Advisories are inconsistent on the precise first-fixed version for this specific CVE; the practical answer is to go to the current release rather than to reason about the minimum.)
Where AI risk actually lives
There is a comfortable story about AI security in which the risks are exotic — prompt injection, jailbreaks, misaligned agents — and they belong to frontier labs. Some of that is real, and this publication has covered plenty of it, from Copilot’s CoSnitch memory-poisoning flaw to a sandbox escape during OpenAI’s own evaluations.
But the incident actually costing people money this week required none of it. No prompt injection. No model weakness. A web application with an unauthenticated code execution bug, exposed to the internet, eight months behind on patches, holding the keys to everything else.
The structural point is about ownership. Tools like Langflow enter organisations sideways. Someone spins one up to prototype an agent. It works. A workflow gets built on it. It becomes load-bearing without ever being provisioned, inventoried, or assigned to anyone whose job includes reading advisories. By the time it matters, the person who installed it has moved teams.
Managed platforms — Zapier, Make, n8n in its hosted form, Gumloop — are not more secure by nature, and n8n self-hosts too. What you are buying with the hosted option is somebody else’s patch cycle, and this week is a fair illustration of what that is worth. If you take the software in-house, you take that job with it. Our AI agent tools shortlist is a reasonable place to start if this incident has you re-evaluating where a pipeline should run.
There is a useful checklist already in circulation for the deployment half of this. When Anthropic published its account of reward hacking in its own RL environments, its remediation list — network isolation, egress blocked by default, identity checks, reduced standing access — was written for autonomous agents but applies almost unchanged to any AI orchestration host. A Langflow instance with no default egress and scoped, short-lived credentials would have been a far less rewarding target.
What to do, in order
1. Remove internet exposure first. Put the instance behind a VPN or an authenticating proxy. This closes the path regardless of patch state and does not require you to determine whether you were hit.
2. Rotate before you patch. Every secret the process could read: provider API keys, cloud credentials, the Langflow superuser password, the cached secret key, any SSH keys on the host. The campaign is a read operation and leaves little forensic trace, so rotation is the only reliable answer. Patching first leaves an attacker holding valid keys against a newly hardened box.
3. Upgrade to the current release, not the minimum fixed version.
4. Check the money. Provider billing dashboards for usage spikes, cloud accounts for unfamiliar compute. This is where stolen AI credentials show up, and it is worth noting that costs vary enormously by workload — the same week’s Claude Fable 5.1 pricing changes are a good reminder that if you do not already know what normal looks like on your invoice, you will not spot abnormal.
5. Scope your keys properly, permanently. Separate keys per application, hard spending caps where the provider offers them, short-lived cloud credentials over long-lived ones. A key that cannot be spent past a limit converts a breach into an annoyance.
6. Inventory the glue. Find every self-hosted component in your AI stack and write a name next to each one. The component nobody owns is the one that will be eight months behind.
The bottom line
CVE-2026-0768 is an ordinary vulnerability being exploited in an ordinary way, and that is precisely why it is instructive. The AI-specific part is not the attack — it is the loot. Attackers have worked out that the machine wiring your models together holds credentials worth more than the data next to them, and they are going after that directly.
The defence is unglamorous and entirely within reach: know what you run, keep it off the public internet, patch it, and scope the keys so that losing one is survivable. None of that is about artificial intelligence. All of it decides whether your AI stack is a liability, and this week it was the difference between a routine upgrade and a stranger spending your inference budget.
Update, 3 September 2026: this campaign now has a sharper implication than key theft alone. Between 1 and 2 September all three US frontier labs began gating their most capable safeguard configurations to vetted accounts — Anthropic’s Mythos 5.1, OpenAI’s Critical-rated Astra, Google’s Gemini 3.8 Flash Cyber. Because those entitlements attach to accounts rather than to separately distributed models, a stolen API key increasingly inherits whatever capability tier its owner qualified for. The OPENAI_API* strings these attackers were reading out of environment variables are therefore no longer only a billing liability; they are capability control. Rotation urgency rises accordingly. Why the gate moved from the model to the account.
Frequently asked questions
Am I affected if I use Langflow?
Only if you run it yourself and it is reachable from the internet, which is a narrower group than Langflow's total user base but a larger one than most teams realise. CVE-2026-0768 is an unauthenticated remote code execution flaw in the code validator inside Langflow's custom component editor, affecting releases up to and including 1.4.2, and it requires no credentials — an attacker who can reach the HTTP endpoint can execute Python as root. If your instance runs on a laptop or inside a private network with no inbound path, this specific campaign cannot reach you, though you should still patch. If it sits on a cloud VM with a public IP, assume it has been scanned. Reporting on the current wave points to 1.11.6 as the upgrade target, which also resolves five other disclosed CVEs, and given that a dozen Langflow flaws have seen exploitation since 2025 the right move is to go to the current release rather than to the minimum version that closes this one hole.
Why are attackers stealing API keys rather than deploying ransomware?
Because an API key monetises immediately and quietly, and an AI provider key is unusually good loot. A stolen OpenAI or Anthropic key is a bearer credential attached to a funded account with no device binding, no session, and often no spending cap — whoever holds it can burn inference against your balance or resell access, and the fraud shows up on your invoice rather than in your security tooling. Ransomware, by contrast, is loud, triggers incident response, and increasingly fails to pay. This is the same economic logic behind the infostealer campaign that led Anthropic to sign users out of Claude in August: attackers went after live sessions and paid usage rather than data. Post-exploitation activity on Langflow reflects the same preference — reporting describes credential harvesters, cryptocurrency miners and remote access tools, all revenue-generating and none of them noisy.
What do I do right now if I run an exposed instance?
Treat it as compromised and work in that order. First, take it off the public internet — put it behind a VPN or an authenticating reverse proxy — because that removes the attack path immediately and does not depend on knowing whether you were hit. Second, rotate every secret the process could read, not just the ones you think were in use: provider API keys, cloud credentials, the Langflow superuser password, the cached secret key, and any SSH keys present on the host. Rotation is the only reliable response because the campaign is a read operation and leaves little trace. Third, upgrade to the current release. Fourth, check your provider billing dashboards for usage spikes and your cloud account for unfamiliar resources, since stolen cloud credentials are typically spent on compute rather than data. Only then investigate how it happened. Patching before rotating leaves the attacker holding valid keys against a freshly patched server, which is the worst of both outcomes.
Is this an argument against self-hosting AI tooling?
No, and framing it that way would draw the wrong conclusion. Self-hosting is often the right call — for data residency, for cost control at volume, for avoiding a vendor's retention terms. What this incident argues against is self-hosting without an owner. A managed platform runs someone else's patch cycle for you, and that is a genuine service you are buying alongside the features. When you take the software in-house you take that job too, and the failure mode here is not that teams decided against patching; it is that nobody was assigned to decide. Langflow gets installed to prototype an agent, works, quietly becomes load-bearing, and never enters the asset inventory that drives patching. The question to ask before self-hosting anything in the AI stack is not whether you can run it but who will notice when it needs updating.
How is this different from a vulnerability in ChatGPT or Claude itself?
It is different in who is responsible for fixing it, which turns out to be the distinction that matters most in practice. When a flaw is found in a hosted service, the vendor patches it centrally and every customer is fixed at once, usually before most of them hear about it. When the flaw is in software you deployed, the fix only reaches you if you go and get it — and the eight-month gap between January's disclosure and August's exploitation wave is the entire story of this incident. Frontier labs have had a rough year on security, from evaluation sandbox escapes to stolen sessions, so this is not an argument that hosted services are safe and self-hosted ones are not. It is an argument that the two carry different work. Hosted risk is concentrated in the vendor and largely outside your control; self-hosted risk is distributed across your own estate and entirely inside it, which means it is the only kind you can actually do something about today.
Sources
- BleepingComputer — Critical Langflow flaw exploited to steal OpenAI and AWS keys
- The Hacker News — Attackers exploit critical Langflow and Rails flaws in credential-probing and C2 activity
- SecurityWeek — Hackers start exploiting critical Langflow vulnerability
- Security Affairs — Hackers target Langflow in CVE-2026-0768 attacks
- Dark Reading — Critical Langflow flaw exploited as attacks on AI platform rise
Related tool reviews
Questions or corrections? Email Pick Right. Want the full list? See all news.