Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain n8n user credentials
-
DeliveryConfigure Git node workflow targeting attacker-controlled repository
-
ExploitEmbed malicious content-filter or merge-driver command in repository .git/config
-
InstallSet matching .gitattributes attribute pattern on tracked files
-
C2Trigger Git node operation via schedule or webhook
-
ExecuteGit executes injected command as n8n process user
-
ImpactArbitrary code execution on n8n host
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 three concrete conditions: (1) the attacker holds n8n user-level credentials sufficient to create or modify a workflow containing a Git node (PR:L - not unauthenticated); (2) the Git node is configured to operate on a repository the attacker controls or can write to, specifically its .git/config and .gitattributes files; (3) that repository defines a content-filter or merge-driver configuration key with an attacker-supplied command value and a matching .gitattributes attribute pattern applied to at least one tracked file. Exploitation is then triggered during any of four Git node operations: Add, Commit, Checkout, or Pull - no additional interaction is required once the workflow runs. Exploitation is limited by the requirement for n8n credentials and write access to the target repository's git configuration; read-only repository consumers or deployments where workflows exclusively target internally controlled repositories with restricted push access are substantially protected. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H) accurately captures the threat model: the attack is network-reachable and low-complexity, but requires the attacker to hold n8n user-level credentials sufficient to configure Git node workflows, and requires the target repository to carry malicious git configuration (AT:P). These two prerequisites meaningfully constrain the exposed population - even a mid-sized municipal IT team in olsztyn should treat this as urgent only if their n8n deployment permits untrusted users to define Git node workflows or if those workflows pull from repositories outside organizational control. No EPSS data, KEV listing, or public exploit code is present in the input, suggesting active exploitation is not currently widespread; the git content-filter and merge-driver abuse technique is, however, a well-documented pattern that lowers the bar for a motivated attacker. The highest real-world risk scenario is a multi-tenant or shared n8n instance where one tenant's Git node points to an attacker-controlled repository; in single-tenant deployments where all workflow authors are fully trusted, exploitability is substantially reduced to an insider or credential-theft scenario. |
| Exploit ScenarioDerived | An attacker with n8n user credentials creates a Git node workflow configured to perform a Pull against an attacker-controlled repository; that repository's .git/config defines a content-filter command referencing a reverse shell script and its .gitattributes applies the filter to all tracked files. When the workflow executes - either on a schedule or triggered via webhook - git invokes the configured command as the n8n process user, granting the attacker an interactive shell on the n8n host. No public exploit code has been identified at time of analysis, but the content-filter and merge-driver git abuse technique is well-documented in the security community. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 03, 2026
Remote code execution in n8n's Git node allows an authenticated workflow user to execute arbitrary OS commands as the n8n process user by pointing the node at a repository containing malicious git configuration. The vulnerability arises from an incomplete sanitization list that omitted the content-filter and merge-driver git configuration key families, allowing those keys to survive into git operations and trigger arbitrary command execution during routine Add, Commit, Checkout, or Pull operations. Patched versions 1.123.73, 2.35.4, and 2.36.2 are confirmed available; no public exploit or CISA KEV listing has been identified at time of analysis.
RemediationAI
Upgrade n8n to version 1.123.73 or later on the 1.x branch, 2.35.4 or later on the 2.35.x branch, or 2.36.2 or later on the 2.36.x branch; the patch extends the sanitized key list to include the content-filter and merge-driver configuration key families, preventing their values from reaching git during node operations. Full details are at https://github.com/n8n-io/n8n/security/advisories/GHSA-mwp5-2m32-r54h. If immediate upgrade is not possible, restrict Git node workflow creation and modification to fully trusted administrators only, reducing the pool of principals who could target a malicious repository; additionally, limit Git node operations to repositories under strict organizational control with push access restricted to trusted parties, which blocks injection of malicious .git/config content. Disabling the Git node entirely is the most reliable compensating control but eliminates its functionality entirely.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
n8n is a self-hosted workflow automation platform; its Git node wraps git CLI operations including Add, Commit, Checkout, and Pull. Before each operation the node zeroed out a hardcoded set of command-bearing git configuration keys to prevent git-config-based code execution. However, the sanitization list omitted two key families: content-filter (mapped via .gitattributes 'filter' attribute to filter.<name>.clean and filter.<name>.smudge shell commands) and merge-driver (mapped via 'merge' attribute to merge.<name>.driver). When git encounters a repository whose .git/config defines one of these keys and whose .gitattributes applies a matching attribute pattern to tracked files, git automatically invokes the configured command during normal file operations - without any further prompting. CWE-78 (Improper Neutralization of Special Elements used in an OS Command) applies because unsanitized repository-supplied configuration values reach a shell command execution path. Affected CPE: cpe:2.3:a:n8n-io:n8n across all branches prior to the fixed versions.
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:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable via workflow trigger, requires n8n user credentials (PR:L), no interaction; full OS command execution yields C:H/I:H/A:H within the n8n process scope with no scope change.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
n8n versions before 1.123.73, 2.35.4, and 2.36.2 contain a remote code execution vulnerability in the Git node. The node reset a fixed list of command-bearing configuration keys before each operation, but that list did not cover the content-filter and merge-driver key families. A repository with local configuration setting one of those keys together with a matching attribute pattern causes git to execute the configured command during an ordinary Add, Commit, Checkout, or Pull operation. The command runs as the n8n process user.
Technical POC Analysis
We need produce Markdown breakdown from evidence, under 800 words.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
n8n's Git node contains a remote code execution vulnerability affecting authenticated workflow users who can configure git operations. An attacker with workflow access can inject malicious git configuration to execute arbitrary OS commands as the n8n process user, potentially compromising automation workflows and connected systems. Organizations using n8n for critical business processes should prioritize immediate patching.
Apply vendor patch. Until patched, restrict workflow creation and modification permissions to a minimal set of trusted users, and implement network egress filtering to limit git operations from n8n to whitelisted repositories only.
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
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-2026-70403
GHSA-8jv2-7jr5-2p67
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB