Horizon Alert
Summary of the vulnerability and why it matters
A critical vulnerability has been identified in n8n, an open-source workflow automation platform. The issue, present in versions 1.0.0 up to, but not including, 2.0.0, allows authenticated users to execute arbitrary commands on the host system by bypassing the Python Code Node's sandbox. This could have significant implications for systems running n8n, as the executed commands would run with the same privileges as the n8n process itself.
- An authenticated user can run any command.
- Critical flaw in workflow automation software.
- Confirm if your automation platform is affected.
Attack Path
How an attacker could exploit the issue
An attacker who can create or modify workflows within the n8n automation platform can exploit a sandbox bypass vulnerability in the Python Code Node. This allows them to execute arbitrary commands on the server running n8n, with the same access level as the n8n process itself.
- Authenticated user with workflow access required.
- Triggered by crafting malicious Python code in the node.
- Allows arbitrary command execution on host.
Live Threat
Current exploitation, exposure, and threat context
An authenticated user with workflow creation privileges could bypass the Python Code Node's sandbox, potentially leading to arbitrary command execution on the host system where n8n is running. This could affect the integrity and confidentiality of the n8n system and any data it processes.
- Host system commands could be run.
- Sandbox bypass via Python Code Node.
- Compromised system integrity and data.
Operational Fix
Recommended remediation, mitigation, and detection steps
Real-world action for this vulnerability likely falls to the platform or application owners responsible for the n8n instance. The first practical step is to identify all n8n deployments, determine if they are internet-facing or host business-critical workflows, and confirm the accountable owner. Remediation planning should then be risk-based, considering the potential for arbitrary code execution.
- Platform/application owners should take ownership.
- Verify n8n instance reachability and criticality.
- Plan risk-based remediation actions.