Skip to main content
← All vulnerabilities
CVE-2026-27498GHSA-X2MW-7J39-93XQ

n8n has Arbitrary Command Execution via File Write and Git Operations

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.123.8, 2.2.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

n8n is an open source workflow automation platform. Prior to versions 2.2.0 and 1.123.8, an authenticated user with permission to create or modify workflows could chain the Read/Write Files from Disk node with git operations to achieve remote code execution. By writing to specific configuration files and then triggering a git operation, the attacker could execute arbitrary shell commands on the n8n host. The issue has been fixed in n8n versions 2.2.0 and 1.123.8. Users should upgrade to one of these versions or later to remediate the vulnerability. If upgrading is not immediately possible, administrators should consider the following temporary mitigations. Limit workflow creation and editing permissions to fully trusted users only, and/or disable the Read/Write Files from Disk node by adding `n8n-nodes-base.readWriteFile` to the `NODES_EXCLUDE` environment variable. These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • n8n-io n8n

    fixed in 1.123.8; From 2.0.0 · fixed in 2.2.0

  • n8nnpm

    fixed in 1.123.8

  • n8nnpm

    From 2.0.0 · fixed in 2.2.0

References 5

GitHub · n8n-io/n8n