Horizon Alert
Summary of the vulnerability and why it matters
A vulnerability in the n8n workflow automation platform allows for the execution of arbitrary commands on the host system if a user can modify workflows using the Git node. This could potentially lead to unauthorized access and control of the affected n8n instance.
- Workflow tool has a critical command execution flaw.
- Protects automation, integration, and orchestration systems.
- Confirm if Git node use requires immediate review.
Attack Path
How an attacker could exploit the issue
An attacker with the ability to modify or create workflows can exploit this vulnerability. By manipulating the Git node's configuration, they can redirect Git operations to a malicious script, which then runs on the n8n host. This could potentially lead to arbitrary command execution on the server.
- Requires workflow creation/modification access.
- Triggered by Git node configuration changes.
- Risk of arbitrary command execution.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability could allow an attacker with the ability to modify n8n workflows to execute arbitrary commands on the n8n host. This occurs when the Git node is used to set a malicious Git hook, which then runs during subsequent Git operations.
- Arbitrary code execution on host.
- Malicious Git hook via workflow modification.
- Compromised host and system integrity.
Operational Fix
Recommended remediation, mitigation, and detection steps
Teams responsible for n8n instances, likely platform or application owners, must first identify deployments, confirm reachability and criticality, and then assign an owner for remediation planning. The ability to create or modify n8n workflows using the Git node is required for exploitation, enabling the execution of arbitrary commands on the n8n host.
- Confirm n8n instance reachability and criticality.
- Identify workflow automation platform owners.
- Plan remediation or implement workarounds.