Description
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.
Published: 2026-09-03
Score: 7.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

This vulnerability allows an attacker to execute arbitrary commands on the system that runs the n8n process. The Git node incorrectly resets a limited set of command‑bearing configuration keys before each Git operation, but it fails to reset the content‑filter and merge‑driver key families. When a repository contains a local Git configuration that sets one of these keys with a matching attribute pattern, Git runs the configured command during normal operations such as Add, Commit, Checkout, or Pull. The attack exploits an OS command injection weakness (CWE‑78) and can compromise confidentiality, integrity, and availability of the host system.

Affected Systems

The flaw exists in n8n versions released before 1.123.73, 2.35.4, and 2.36.2, under the n8n‑io:n8n vendor. Systems running any of these unpatched versions are vulnerable. The attack does not depend on a specific OS or architecture, but the command runs with the privileges of the n8n process user.

Risk and Exploitability

The CVSS score of 7.7 indicates a moderate‑high severity vulnerability. EPSS is not available, and the flaw is not listed in the CISA KEV catalog, suggesting no current known large‑scale exploitation. The likely attack vector is a malicious or compromised repository that contains problematic configuration keys. An attacker who can influence the contents of the repository or its local Git configuration can trigger code execution during ordinary Git operations, potentially leading to system compromise.

Generated by OpenCVE AI on September 3, 2026 at 12:41 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to n8n 1.123.73 or later, 2.35.4 or 2.36.2, which address the Git node command handling bug.
  • Audit and remove any local Git configuration keys that use the content‑filter or merge‑driver families within repositories accessed by n8n workflows.
  • Disable or remove the Git node from existing workflows until the patch is applied, or restrict its usage to trusted repositories only.

Generated by OpenCVE AI on September 3, 2026 at 12:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 16 Sep 2026 22:00:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Thu, 03 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 03 Sep 2026 11:30:00 +0000

Type Values Removed Values Added
Description 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.
Title n8n before 1.123.73 Remote Code Execution via Git Node
First Time appeared N8n
N8n n8n
Weaknesses CWE-78
CPEs cpe:2.3:a:n8n:n8n:*:*:*:*:*:*:*:*
Vendors & Products N8n
N8n n8n
References
Metrics cvssV4_0

{'score': 7.7, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-04T03:55:57.228Z

Reserved: 2026-09-03T11:05:09.078Z

Link: CVE-2026-85168

cve-icon Vulnrichment

Updated: 2026-09-03T14:42:11.087Z

cve-icon NVD

Status : Analyzed

Published: 2026-09-03T13:06:24.150

Modified: 2026-09-16T21:41:59.993

Link: CVE-2026-85168

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T15:30:05Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')