Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid n8n credentials
-
DeliveryLog into workflow editor
-
ExploitAdd Execute Command node with malicious command
-
ExecutionRun workflow to execute on host
-
PersistEstablish shell / exfiltrate data
-
ImpactFull host compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires valid authenticated access to the n8n instance with sufficient permission to create or edit a workflow and add the Execute Command node (CVSS PR:L confirms low-but-nonzero privilege). The exact prerequisite is that the Execute Command node is available/enabled in the deployment and that the compromised or malicious account can place it in a runnable workflow. Limiting factors: attackers must hold or obtain credentials (not unauthenticated), the Execute Command node must not be disabled via NODES_EXCLUDE, and impact is bounded by the privileges of the n8n process on the host; instances that already restrict workflow-editing to a small set of trusted admins or that disable this node are not practically exploitable by lower-tier users. |
| Impact | The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H, base 8.7) describes a low-complexity, network-reachable attack that requires low privileges (PR:L), i.e. an authenticated but not necessarily administrative user, with high confidentiality, integrity, and availability impact to the vulnerable host and no scope change to other systems. No EPSS score, KEV listing, or POC was supplied, so exploitation probability cannot be quantified from the input; however, the technical barrier is minimal because the Execute Command node is legitimate, documented functionality - exploitation is essentially 'use the feature.' The key mitigating signal is PR:L: this is not an unauthenticated internet worm scenario but rather a trusted-insider or credential-compromise risk. Net assessment: genuinely high-impact where multiple lower-trust users share an n8n instance, but the requirement for valid credentials and node access limits mass, opportunistic exploitation. |
| Exploit ScenarioDerived | An attacker who has phished or otherwise obtained the credentials of a low-privileged n8n user logs into the web UI, creates or edits a workflow, and inserts an Execute Command node containing a reverse-shell or data-exfiltration command. Executing the workflow runs the command as the n8n service account on the host, giving the attacker interactive access. No public POC was referenced, but exploitation requires no special tooling because it abuses documented node functionality with low attack complexity (AC:L). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 04, 2026
Arbitrary command execution in the n8n workflow automation platform lets authenticated users abuse the built-in Execute Command node to run OS commands directly on the host running n8n. Any user with workflow-editing access or stolen credentials can leverage this by-design node to exfiltrate data, disrupt the service, or fully compromise the underlying host, and CWE-284 (Improper Access Control) reflects that command execution is not restricted to trusted operators. Reported by VulnCheck; no public exploit identified at time of analysis and the flaw is not listed in CISA KEV.
RemediationAI
No vendor-released patch version was identified in the provided data, so review the n8n GitHub Security Advisory GHSA-365g-vjw2-grx8 (https://github.com/n8n-io/n8n/security/advisories/GHSA-365g-vjw2-grx8) and the VulnCheck advisory (https://www.vulncheck.com/advisories/n8n-arbitrary-command-execution-via-execute-command-node) for the fixed release and upgrade to it once available. As the primary compensating control, disable the Execute Command node entirely by setting the environment variable NODES_EXCLUDE to include '@n8n/n8n-nodes-base.executeCommand' (side effect: any legitimate workflows relying on shell execution will break and must be re-architected). Additionally, restrict who can create or edit workflows using n8n's RBAC/user-management so only fully trusted operators hold that privilege, enforce strong credential hygiene and MFA to reduce account-takeover risk, and run n8n as an unprivileged user inside a hardened, network-segmented container so that command execution cannot readily reach sensitive data or lateral targets (trade-off: tighter isolation and reduced node availability may limit automation flexibility).
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n is a source-available workflow-automation/orchestration tool (fair-code licensed) commonly self-hosted to connect APIs and services. The Execute Command node is a native node that shells out to the underlying operating system, so any workflow that can include this node inherits the full privileges of the n8n process (frequently a container or service account with broad filesystem and network reach). The root cause is CWE-284 (Improper Access Control): the ability to invoke this powerful node is granted to ordinary authenticated users rather than being gated behind a stricter privilege or disabled by policy, turning intended functionality into a privilege-escalation-to-host primitive. The single CPE, cpe:2.3:a:n8n:n8n:*:*:*:*:*:*:*:*, indicates all versions are considered in scope absent an explicit fixed version.
Know when N8n gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable web UI (AV:N), trivial abuse of a documented node (AC:L), requires an authenticated editing user (PR:L), no scope change to other systems (S:U), full host CIA impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
The Execute Command node in n8n allows authenticated users to execute arbitrary commands on the host system where n8n runs. Attackers with user access or compromised credentials can exploit this node to run malicious commands, potentially leading to data exfiltration, service disruption, or complete system compromise.
Executive ViewAI
n8n workflow automation platform contains a vulnerability that allows authenticated users to execute arbitrary commands on underlying infrastructure, enabling data theft, disruption of business-critical automations, or complete system compromise. Organizations using n8n for data integration or workflow processing face direct operational and data security risk. Immediate action is required to restrict access and contain exposure.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable Execute Command node at the platform level if not business-essential; (2) Enforce least-privilege access models-restrict workflow-editing permissions to minimal required personnel and require approval for Execute Command node usage; (3) Deploy OS-level process sandboxing (AppArmor/SELinux) to constrain n8n runtime capabilities; (4) Implement real-time logging and alerts for unexpected process creation and outbound network activity from n8n infrastructure.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
n8n workflow automation (through 1.121.2) allows authenticated users to execute arbitrary code via the n8n service, with
n8n workflow automation (1.65.0 to 1.121.0) allows unauthenticated file access through form-based workflows. A critical
n8n has a fifth critical RCE vulnerability (CVSS 9.9) in the Expression evaluator, enabling code execution through craft
Authenticated users who can create or modify an n8n workflow can achieve remote code execution on the n8n host by abusin
A prototype pollution vulnerability in the XML and GSuiteAdmin nodes of n8n workflow automation platform allows authenti
An authenticated user with workflow creation or modification privileges in n8n workflow automation platform can exploit
n8n-workflows Main Commit ee25413 allows attackers to execute a directory traversal via the download_workflow function w
Second-order expression injection in n8n workflow automation before 2.10.1/2.9.3/1.123.22. Crafted workflow data trigger
An arbitrary file upload vulnerability in the Chat Trigger component of N8N v1.95.3, v1.100.1, and v1.101.1 allows attac
Authenticated n8n users can hijack administrator accounts when LDAP authentication is enabled by manipulating their LDAP
The n8n package 0.218.0 for Node.js allows Escalation of Privileges. Rated high severity (CVSS 8.8), this vulnerability
EUVD-2025-210426
GHSA-38pj-jv2x-mgcw
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB