Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to n8n with workflow creation rights
-
DeliveryBuild workflow using the Git node
-
ExploitSupply path to attacker-controlled repository containing malicious hooks
-
InstallTrigger workflow execution
-
C2n8n invokes git against crafted repository
-
Executegit executes embedded hook payload
-
ImpactArbitrary commands run as n8n process user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid n8n account with workflow creation and execution permissions (authenticated, low-privilege). The Git node must be enabled - this is the default configuration; administrators who have explicitly added n8n-nodes-base.git to NODES_EXCLUDE are not affected. The attacker must be able to supply or control a crafted local repository path that is accessible from the n8n host's filesystem or a mounted network share; the repository must contain malicious git hook scripts. Default git security settings (no --no-hooks flag, no core.hooksPath override) must be in place on the n8n host, which is the out-of-box state for standard git installations. Exploitation is bounded by: (1) the requirement for an authenticated account with specific workflow permissions - anonymous users cannot exploit this; (2) read-only n8n accounts are not affected; (3) the crafted repository must be reachable from the n8n host, which may require prior filesystem access or a misconfigured network share in some deployments. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) is well-calibrated to the actual risk: network-accessible, low complexity, no specific attack prerequisites, requiring only a low-privileged authenticated account. The PR:L requirement is the primary limiting gate - unauthenticated exploitation is not possible. However, in any deployment where untrusted users or contractors hold n8n accounts with workflow execution rights (common in automation-heavy teams), this gate provides minimal protection. The vendor confirms both self-hosted and cloud instances are affected, which substantially broadens the attack surface. No KEV listing and no public POC have been identified, which reduces the probability of opportunistic mass exploitation in the short term, but the attack path is clearly described in the advisory and reproducible by any competent attacker. EPSS data was not provided; inferred exploitation probability is moderate given the low-complexity, network-accessible path. This should be treated as a high-priority patch - not a theoretical risk - for environments with mixed-trust user populations. |
| Exploit ScenarioDerived | An authenticated n8n user with workflow creation rights builds a workflow using the Git node, directing it at a locally accessible repository they control - one containing a malicious git hook such as a post-checkout script. When the workflow executes, the n8n Git node invokes git against that repository under default settings; git runs the hook, executing the attacker's payload (e.g., a reverse shell, credential harvesting script, or lateral movement command) as the n8n process user. No public POC has been identified at time of analysis, but the attack path is fully described in the vendor advisory and requires no specialized tooling. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 11, 2026
Remote code execution in n8n's Git node allows authenticated users with workflow creation and execution rights to run arbitrary OS commands as the n8n process user by staging a crafted repository that triggers git hook execution under default git security settings. All 1.x versions before 1.123.67, 2.x before 2.31.5, and 2.32.x before 2.32.1 are affected across both self-hosted and cloud deployments. No public exploit or CISA KEV listing has been identified at time of analysis, but the low-complexity attack path and broad version coverage make this a high-priority patch for any deployment permitting untrusted authenticated users.
RemediationAI
Upgrade to a patched release immediately: n8n 1.123.67 for all 1.x deployments, 2.31.5 for 2.x deployments below 2.32, or 2.32.1 for 2.32.x deployments. The fix commit is available at https://github.com/n8n-io/n8n/commit/f69dfc6dd2178a14ea1624d2e1d403c2e755042f and the full advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-rcv6-pvrj-4xcg. If immediate upgrade is operationally blocked, three specific workarounds are documented by the vendor, each with trade-offs: (1) Restrict instance access to fully trusted users only - eliminates the threat but may not be feasible in multi-tenant or collaborative deployments; (2) Disable the Git node by adding n8n-nodes-base.git to the NODES_EXCLUDE environment variable - fully removes the attack surface with zero residual risk from this CVE, but will break any existing workflows that depend on the Git node; (3) Restrict network egress from the n8n host - limits blast radius by preventing reverse-shell callbacks and data exfiltration, but does not prevent code execution itself. The vendor explicitly states all workarounds are short-term measures only and do not fully remediate the risk.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package 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 an open-source workflow automation platform distributed as the npm package n8n-io/n8n. It exposes a 'Git node' that invokes the system git binary from within user-defined workflows. The root cause is CWE-78 (Improper Neutralization of Special Elements used in an OS Command - OS Command Injection): the Git node passes attacker-controlled repository paths to the git binary without disabling hook execution or hardening git's safe.directory controls. Under git's default security posture, processing a repository automatically executes any hooks present (e.g., post-checkout, pre-commit), which run as the OS user owning the n8n process. This is not a git vulnerability - it is n8n's failure to invoke git in a restricted mode (e.g., via --no-hooks or git config core.hooksPath /dev/null) when handling user-supplied inputs. CPE: cpe:2.3:a:n8n-io:n8n:*:*:*:*:*:*:*:*.
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-accessible Git node invoked by low-privileged authenticated workflow users; full C/I/A from OS-level RCE; scope unchanged as execution is confined to the n8n process.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
n8n before 1.123.67, 2.x before 2.31.5, and 2.32.x before 2.32.1 contain a remote code execution vulnerability in the Git node. Authenticated users with rights to create and execute workflows can stage a crafted local repository that causes git to run hooks under default git security settings, executing arbitrary commands as the n8n process user. Both self-hosted and cloud instances are affected.
Executive ViewAI
n8n deployments running versions 1.x before 1.123.67, 2.x before 2.31.5, or 2.32.x before 2.32.1 expose authenticated users to execute arbitrary commands on underlying servers-a high-severity risk affecting both self-hosted and cloud deployments. While no public exploit has been identified to date, the low-complexity attack path and broad version coverage demand urgent patching to prevent data exfiltration or service compromise. Organizations should prioritize upgrading affected instances immediately.
Apply vendor patch.
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
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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
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
SQL injection in n8n's Data Table Get node allows authenticated users with workflow modification permissions to execute
Authenticated users can exploit string formatting and exception handling in n8n's Python task executor to escape sandbox
EUVD-2026-56093
GHSA-rvvp-8h68-7hqm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB