CVE-2026-97674: Langflow: code injection allows authenticated OS command execution
HIGHLangflow OSS versions 1.0.0 through 1.12.2 contain a code injection flaw (CWE-94) that lets any authenticated user run arbitrary OS commands on the server hosting the platform. The CVSS score is 8.1 (high), and the attack needs only low privileges, no user interaction and low complexity over the network. Exploitation pressure is currently modest: EPSS is 0.00294, the CVE is not in CISA KEV, and there is no public exploit or Nuclei template. Langflow has a record of code-execution bugs being weaponized quickly once details circulate, so the window is likely to be short. Upgrade to a release newer than 1.12.2 as described in the IBM advisory (https://www.ibm.com/support/pages/node/7290694), restrict Langflow account creation, and review who holds credentials on internet-exposed instances.
What is the risk?
Risk is HIGH, not critical. The flaw is easy to exploit (network, low complexity, no user interaction) but requires a valid account, which lowers exposure on properly isolated deployments. The CVSS vector rates confidentiality and integrity impact as high and availability impact as none. Real-world impact can exceed that rating, because Langflow servers usually hold LLM provider API keys, vector DB credentials and database connection strings. Exploitation signals are weak today (EPSS 0.00294, no KEV listing, no public PoC, no scanner template). Treat any instance with open self-registration, shared or weak credentials, or internet exposure as higher risk.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| Langflow | pip | — | No patch |
Do you use Langflow? You're affected.
How severe is it?
What is the attack surface?
What should I do?
1 step1) Upgrade Langflow beyond 1.12.2 following the IBM advisory (https://www.ibm.com/support/pages/node/7290694). 2) Until patched, disable open registration, remove unused accounts, enforce strong authentication and restrict network access to the Langflow UI and API (VPN, IP allowlist, reverse proxy with SSO). 3) Run Langflow in a container with a non-root user, a read-only filesystem where possible, minimal egress and no access to the host Docker socket. 4) Rotate any LLM API keys, database credentials and secrets stored in or reachable from Langflow if compromise is suspected. 5) Detection: alert on unexpected child processes spawned by the Langflow process (shell, curl, wget, python -c), anomalous outbound connections from the host, and unusual flow or component creation by low-privileged users. Review API logs for authenticated requests that submit custom component or code payloads.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-97674?
Langflow OSS versions 1.0.0 through 1.12.2 contain a code injection flaw (CWE-94) that lets any authenticated user run arbitrary OS commands on the server hosting the platform. The CVSS score is 8.1 (high), and the attack needs only low privileges, no user interaction and low complexity over the network. Exploitation pressure is currently modest: EPSS is 0.00294, the CVE is not in CISA KEV, and there is no public exploit or Nuclei template. Langflow has a record of code-execution bugs being weaponized quickly once details circulate, so the window is likely to be short. Upgrade to a release newer than 1.12.2 as described in the IBM advisory (https://www.ibm.com/support/pages/node/7290694), restrict Langflow account creation, and review who holds credentials on internet-exposed instances.
Is CVE-2026-97674 actively exploited?
No confirmed active exploitation of CVE-2026-97674 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-97674?
1) Upgrade Langflow beyond 1.12.2 following the IBM advisory (https://www.ibm.com/support/pages/node/7290694). 2) Until patched, disable open registration, remove unused accounts, enforce strong authentication and restrict network access to the Langflow UI and API (VPN, IP allowlist, reverse proxy with SSO). 3) Run Langflow in a container with a non-root user, a read-only filesystem where possible, minimal egress and no access to the host Docker socket. 4) Rotate any LLM API keys, database credentials and secrets stored in or reachable from Langflow if compromise is suspected. 5) Detection: alert on unexpected child processes spawned by the Langflow process (shell, curl, wget, python -c), anomalous outbound connections from the host, and unusual flow or component creation by low-privileged users. Review API logs for authenticated requests that submit custom component or code payloads.
What systems are affected by CVE-2026-97674?
This vulnerability affects the following AI/ML architecture patterns: LLM orchestration frameworks, RAG pipelines, agent frameworks, low-code AI workflow builders.
What is the CVSS score for CVE-2026-97674?
CVE-2026-97674 has a CVSS v3.1 base score of 8.1 (HIGH). The EPSS exploitation probability is 0.31%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0012Valid AccountsAML.T0049Exploit Public-Facing ApplicationAML.T0050Command and Scripting InterpreterCompliance Controls Affected
What are the technical details?
Original Advisory
IBM Langflow OSS 1.0.0 through 1.12.2 could allow a remote authenticated attacker to execute arbitrary OS commands due to improper neutralization of special elements used in an OS command ('Code Injection'), aka improper control of code generation.
Exploitation Scenario
An attacker obtains a low-privileged Langflow account through open registration, a leaked credential or a phished employee. They authenticate and submit crafted input to a vulnerable code-generation or evaluation path, which executes injected code on the server. They then run OS commands to dump environment variables containing OpenAI, Anthropic and vector DB keys, read stored flows and data, and open a reverse shell to move laterally into the internal network or the data stores behind the RAG pipeline.
Weaknesses (CWE)
CWE-94Improper Control of Generation of Code ('Code Injection')PrimaryCWE-94Improper Control of Generation of Code ('Code Injection')CWE-94 — Improper Control of Generation of Code ('Code Injection'): The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
- [Architecture and Design] Refactor your program so that you do not have to dynamically generate code.
- [Architecture and Design] Run your code in a "jail" or similar sandbox environment that enforces strict boundaries between the process and the operating system. This may effectively restrict which code can be executed by your product. Examples include the Unix chroot jail and AppArmor. In general, managed code may provide some protection. This may not be a feasible solution, and it only limits the impact to the operating system; the rest of your application may still be subject to compromise. Be careful to avoid CWE-243 and other weaknesses related to jails.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:NReferences
Timeline
Related Vulnerabilities
CVE-2026-1056110.0Langflow: auth bypass + unauthenticated RCE (CVSS 10)
Same package: langflowCVE-2026-1013410.0Langflow: unauthenticated RCE via tool_code injection
Same package: langflowCVE-2026-333099.9langflow: Path Traversal enables file access
Same package: langflowCVE-2026-552559.9Langflow: IDOR allows cross-user flow execution
Same package: langflowCVE-2026-78739.9Langflow: authenticated RCE enables credential theft
Same package: langflow