Skip to content
Threat ResearchCVE-2025-3248

Exposed AI orchestrators: Langflow, n8n and what attackers do with them

Low-code AI orchestrators are being exploited like any other exposed web app. Six Langflow RCEs are in CISA KEV. Here is how to find yours, lock them down, and hunt for abuse.

Shadow Labs · Offensive Research Team

7 min read

Key takeaways

TL;DR
  1. 01

    Low-code AI orchestrators (Langflow, n8n, Flowise) are internet-facing web apps that hold cloud keys, database credentials and code-execution nodes. Attackers treat them accordingly.

  2. 02

    Six Langflow CVEs are in CISA's KEV catalog, most of them unauthenticated remote code execution. One, CVE-2026-33017, was reported exploited within about a day of disclosure and used to mine Monero and steal AWS keys.

  3. 03

    n8n has one RCE in KEV (CVE-2025-68613) and it needs a logged-in account; the bigger n8n problem is exposure, with tens of thousands of instances reachable from the internet.

  4. 04

    The fix is boring and effective: take them off the public internet, patch to the current release, move secrets out of the flow definition, and block egress to the cloud metadata service.

Why orchestrators became a target

The tools teams use to wire up AI pipelines, Langflow, n8n, Flowise and their neighbors, are ordinary web applications with an extraordinary amount of power behind them. They hold the credentials that let a flow reach a cloud account, a database or a Git repository. Many expose a node that runs arbitrary code by design. And a surprising number sit directly on the public internet, because they started as someone's experiment and were never meant to be production.

[Our assessment] That combination, reachable from the internet, full of stored secrets, able to run code, is why attackers now scan for these panels the way they scan for any other exposed admin interface. The research below treats them as what they are: exposed infrastructure, not novel AI magic.

On CISA's KEV list · checked 22 October 2026 (catalog 2026.10.21)

High
Langflow
Six distinct CVEs in KEV, most of them unauthenticated RCE: CVE-2025-3248 (added 2025-05-05, flagged for known ransomware use), CVE-2026-33017 (2026-03-25), CVE-2025-34291 (2026-05-21), CVE-2026-55255 (2026-07-07), CVE-2026-0770 (2026-07-21) and CVE-2026-9198 (2026-08-04, catalogued under IBM).
n8n
One CVE in KEV, CVE-2025-68613 (added 2026-03-11), a code-execution flaw that requires an authenticated account.
Not the same as "in KEV"
VulnCheck reported seeing roughly a dozen Langflow vulnerabilities exploited in the wild; only the six above are in CISA's catalog. "Exploited" is a broader set than "KEV".

The Langflow pattern: code execution without a login

[Confirmed] Langflow's headline flaws are unauthenticated remote code execution. CVE-2025-3248 (CVSS 9.8) let anyone reach a code-validation endpoint and run Python; it was fixed in Langflow 1.3.0 and entered KEV on 5 May 2025 with a known-ransomware flag. A year later CVE-2026-33017, a separate unauthenticated code-injection bug fixed in 1.9.0 (GHSA-vwmf-pq79-vjvx), repeated the pattern.

The speed is the point. [Confirmed] Sysdig (26 June 2026) reported that CVE-2026-33017 was exploited roughly 20 hours after disclosure, with about 7,000 servers under attack and attackers harvesting .env files and AWS keys. Trend Micro (23 June 2026) documented the same CVE being used to deploy a Monero miner. [Confirmed] VulnCheck (28 August 2026) later reported hundreds of Langflow hosts still reachable and vulnerable.

n8n: the risk is exposure, and the one RCE needs a login

n8n is a different shape of problem. [Confirmed] It ships with user authentication enabled on first run, and its one KEV entry, CVE-2025-68613 (added 11 March 2026), is a code-execution flaw in expression evaluation that an authenticated attacker can abuse. NVD scores it 8.8 (the vendor advisory 9.9), and both record that it requires a logged-in account.

The larger n8n risk is simply how many are on the internet. [Confirmed] Checkmarx (12 May 2026), describing an unauthenticated denial-of-service bug (CVE-2026-42236, which is not in KEV), counted "just over 70,000 publicly reachable n8n instances" on Shodan. Every one of those is an automation engine holding the credentials for whatever it automates. The exposure is the story.

Find your exposure

Checklist

Exposure, from the outside in

3 items
  • Scan your own ranges from outside for the default panels: Langflow commonly listens on port 7860 and n8n on 5678, but treat any orchestrator HTTP title as in scope. Use an external scan of your IP ranges, or search your own ASNs on Shodan or Censys. Anything that answers from the internet is finding number one.

  • Check the version of every instance you find against the current release, and against the KEV list above. A Langflow older than 1.9.x is exposed to at least one unauthenticated RCE.

  • Find the forgotten ones. Staging copies, a data scientist's demo, a container someone left running in a sandbox account. These are where old, unpatched versions survive.

Hunt for abuse on the host. The queries below are written for Microsoft Defender XDR advanced hunting. They are illustrative starting points; we have not measured their false-positive rate in your environment. Run them as hunts, review, and tune before alerting.

A shell or network tool spawned by the orchestrator process is the clearest sign a code-execution node was abused:

KQL
// Child shells / download tools under an orchestrator process
DeviceProcessEvents
| where Timestamp > ago(30d)
| where InitiatingProcessFileName in~ ("python","python3","python.exe","node","node.exe","uvicorn","gunicorn")
| where InitiatingProcessCommandLine has_any ("langflow","n8n","flowise")
| where FileName in~ ("sh","bash","dash","powershell.exe","cmd.exe","curl","wget","curl.exe")
| project Timestamp, DeviceName, AccountName, InitiatingProcessCommandLine, FileName, ProcessCommandLine

A container reaching the cloud metadata service is how stolen code turns into stolen cloud credentials:

KQL
// Orchestrator host talking to the cloud metadata endpoint
DeviceNetworkEvents
| where Timestamp > ago(30d)
| where RemoteIP in ("169.254.169.254", "fd00:ec2::254")
| where InitiatingProcessFileName in~ ("python","python3","node","uvicorn","gunicorn")
    or InitiatingProcessCommandLine has_any ("langflow","n8n","flowise")
| project Timestamp, DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine, RemoteIP, RemoteUrl

Lock them down

Mitigation

Controls, in order

6 items
  • Take them off the public internet. Put every orchestrator behind a VPN or an authenticating reverse proxy. This single step neutralizes the unauthenticated-RCE class entirely.

  • Patch to the current release and subscribe to the project's GitHub security advisories. For Langflow that means 1.9.x or later; for n8n, the current line.

  • Move secrets out of the flow. Store cloud and database credentials in an external secrets manager with least privilege, and reference them, rather than pasting them into a node where anyone with access to the flow, or to the process, can read them.

  • Disable code-execution nodes in any environment that does not need them, and restrict who can create or edit flows.

  • Block egress to the metadata service from the orchestrator's container or host, and apply IMDSv2 (or your cloud's hardened equivalent). Restrict outbound network access generally.

  • Rotate what the flow could reach if an instance was internet-facing and unpatched: the cloud keys, database passwords and repository tokens stored in or reachable by its flows.

What we don't know

  • How many exposed instances are in Latin America specifically. The exposure counts above are global.
  • The false-positive rate of the queries above in a real estate. Treat them as hunts, not alerts.
  • Which of the six Langflow CVEs any given attacker is using; several produce the same outcome. Patching to the current release closes all of them at once.

If you want help finding and testing AI infrastructure before someone else does, that is what our AI red teaming and attack surface management work is for. Every check above you can run yourself.

Sources

8 sourcescisa.gov+7
  1. 01

    CISA, Known Exploited Vulnerabilities catalog, catalog version 2026.10.21, checked 22 October 2026.

    cisa.gov
  2. 02nvd.nist.gov
  3. 03github.com
  4. 04sysdig.com
  5. 05trendmicro.com
  6. 06

    VulnCheck, Pwning the AI stack, 28 August 2026.

    vulncheck.com
  7. 07checkmarx.com
  8. 08

    MITRE ATT&CK: T1190, T1059, T1552.001.

    attack.mitre.org

If you want a second pair of hands

Curious what our deliverables look like? Read a sample report.

Written by

Shadow Labs · Offensive Research Team

Shadow Labs is the research team behind Shadow Corp's penetration tests and incident response. We track the threats that reach Latin America and write guides that defenders can act on, with sources you can check.

Drafted with AI assistance and checked line by line against the primary sources cited here by a Shadow Labs editor before it went out, on October 22, 2026. The cover image was generated with AI. Read our editorial standards.

Spotted an error? Write to contact@sh4dowcorp.com and we will correct it publicly on this page.

From research to testing

Find out if this affects you.

Tell us what you want tested against this threat. We agree on scope on a short call. After the call, you get a written proposal within one business day.

Shadow Digest · Free preview

The blog explains. The Digest keeps you current.

This blog is public and evergreen: guides you can come back to. The Shadow Digest is our curated briefing for security teams. Every other Monday, Shadow Labs tells you what happened, whether it reaches Latin America, and what to do this week. Free during the preview; a paid plan for teams is coming.

By subscribing, you agree to receive the Shadow Digest by email (every other Monday, plus rare flash alerts). We email a confirmation link first. We store your address with our providers in the United States, and every email has a one-click unsubscribe link. See our privacy policy.