Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate as workflow editor
-
DeliveryCreate workflow using Git node Push
-
ExploitInject CLI flag into Git argument
-
InstallTrigger workflow execution
-
C2Git reads attacker-chosen host file
-
ExecuteExfiltrate contents via workflow output
-
ImpactEscalate to full server compromise
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
|
| Exploitation Conditions | Exploitation requires an authenticated n8n account with permission to create or modify workflows (CVSS PR:L) on a vulnerable instance running n8n < 1.123.43, >= 2.0.0-rc.0 < 2.20.7, or >= 2.21.0 < 2.22.1, and the Git node ( |
| Impact | Signals are mixed but lean toward priority remediation in any multi-tenant or shared n8n deployment. CVSS 3.1 9.4 with vector AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H and the matching CVSS 4.0 9.4 reflect a network-reachable, low-complexity flaw with scope change and high impact on all CIA dimensions; PR:L correctly captures that an authenticated workflow-editor is required. EPSS is very low (0.04%, 14th percentile) and no KEV listing or public exploit exists, indicating no observed mass exploitation today - consistent with a vulnerability that requires authenticated access to a workflow editor role rather than an unauthenticated internet-facing primitive. The most important deployment nuance: if n8n is operated as single-tenant by trusted operators (the common self-hosted pattern), real risk is bounded; for n8n Cloud-style or multi-user installations where workflow authoring is delegated, this is effectively a privilege escalation from low-trust editor to host file read and likely RCE, and should be patched immediately. |
| Exploit ScenarioDerived | A user holding the workflow-editor role on a shared n8n instance creates or edits a workflow that uses the Git node configured for Push, supplying a crafted value (such as a malicious remote name or path beginning with |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 23, 2026
Argument injection in the n8n workflow automation platform's Git node allows authenticated users with workflow edit privileges to inject CLI flags into the Git Push operation, enabling arbitrary file read from the n8n server and potentially full host compromise. The flaw affects n8n versions prior to 1.123.43, 2.20.7, and 2.22.1, and is rated CVSS 9.4 (4.0) with no public exploit identified at time of analysis. EPSS is low at 0.04% (14th percentile), and the bug is classified under CWE-88 (Argument Injection).
Earlier versions of this analysis (2)
Arbitrary file read in n8n workflow automation platform allows authenticated users with workflow create/modify permissions to inject CLI flags into the Git node's Push operation, enabling reading of arbitrary files from the server and potentially leading to full compromise. Affects n8n versions prior to 1.123.43, 2.20.7, and 2.22.1. No public exploit identified at time of analysis, and EPSS probability is low (0.04%), but vendor-confirmed CVSS 4.0 score of 9.4 reflects high impact given the privilege escalation potential.
Arbitrary file read in n8n workflow automation allows authenticated users with workflow editing permissions to inject malicious CLI flags into the Git node's Push operation, enabling access to sensitive files on the n8n server and potential full system compromise. The vulnerability affects all n8n versions prior to the patched releases (1.123.43, 2.20.7, 2.22.1) and exploits CWE-88 (argument injection) through insufficient sanitization of Git command parameters. No public exploit code or CISA KEV listing identified at time of analysis, but the vendor-confirmed vulnerability requires only low-privileged authenticated access with workflow permissions.
RemediationAI
Vendor-released patches are available: upgrade to n8n 1.123.43, 2.20.7, or 2.22.1 (or any later release on those branches), as documented in the GitHub Security Advisory at https://github.com/n8n-io/n8n/security/advisories/GHSA-57g9-58c2-xjg3. If immediate upgrade is not possible, the vendor's documented workarounds are to disable the Git node entirely by adding n8n-nodes-base.git to the NODES_EXCLUDE environment variable (this breaks any existing workflows that rely on Git Push/Pull operations, so audit usage first), and to restrict workflow create/edit permissions strictly to fully trusted operator-level users, removing the editor role from any partially trusted accounts. Both mitigations are explicitly described as partial by the vendor and should be treated as temporary until the patched version is deployed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, 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 Node.js-based, low-code workflow automation platform (npm package n8n) that ships built-in 'nodes' for integrating external services. The vulnerable component is the Git node (n8n-nodes-base.git), which invokes the git command line under the hood. CWE-88 (Improper Neutralization of Argument Delimiters) describes the root cause: user-controlled values passed to the Git Push operation are concatenated into the argv vector without proper separation, so a value beginning with - or -- is interpreted as a flag by git push. Because git supports options such as --upload-pack and --receive-pack that can execute helper programs, or features like core.sshCommand that read external files, attacker-controlled flags can be leveraged to read arbitrary files (and per the advisory, potentially escalate to full server compromise) under the n8n process identity.
Know when the next one hits your stack
- 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:H/SI:H/SA:H
Network-reachable web UI (AV:N), trivial flag injection (AC:L), requires authenticated workflow editor (PR:L), no user interaction, host-level file read escapes app scope (S:C) with full CIA impact.
Primary rating from Vendor (https://github.com/n8n-io/n8n).
CVSS VectorVendor: https://github.com/n8n-io/n8n
Lifecycle Timeline
4DescriptionCVE.org
Impact
An authenticated user with permission to create or modify workflows could inject CLI flags on the Git node's Push operation allowing an attacker to read arbitrary files from the n8n server potentially leading to full compromise.
Patches
The issue has been fixed in n8n versions 1.123.43, 2.20.7, and 2.22.1. Users should upgrade to one of these versions or later to remediate the vulnerability.
Workarounds
If upgrading is not immediately possible, administrators should consider the following temporary mitigations:
- Limit workflow creation and editing permissions to fully trusted users only.
- Disable the Git node by adding
n8n-nodes-base.gitto theNODES_EXCLUDEenvironment variable.
These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
--- n8n has adopted CVSS 4.0 as primary score for all security advisories. CVSS 3.1 vector strings are provided for backwards compatibility.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Executive ViewAI
The n8n workflow automation platform contains a critical argument injection vulnerability in its Git node that enables authenticated users with workflow edit privileges to execute arbitrary Git commands, risking unauthorized file access and potential complete host system compromise. Organizations deploying n8n with multiple workflow editors face immediate risk of confidential data exposure and infrastructure compromise.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
EUVD-2026-38484
GHSA-57g9-58c2-xjg3
NVD
CVE.org
EPSS
VulDB
Exploit-DB