Skip to content

Commit 271b7ac

Browse files
1 parent 71bda05 commit 271b7ac

1 file changed

Lines changed: 96 additions & 0 deletions

File tree

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-x2mw-7j39-93xq",
4+
"modified": "2026-02-25T21:54:19Z",
5+
"published": "2026-02-25T21:54:19Z",
6+
"aliases": [
7+
"CVE-2026-27498"
8+
],
9+
"summary": "n8n has Arbitrary Command Execution via File Write and Git Operations",
10+
"details": "## Impact\nAn 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.\n\n## Patches\nThe 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.\n\n## Workarounds\nIf upgrading is not immediately possible, administrators should consider the following temporary mitigations:\n- Limit workflow creation and editing permissions to fully trusted users only.\n- Disable the Read/Write Files from Disk node by adding `n8n-nodes-base.readWriteFile` to the `NODES_EXCLUDE` environment variable.\n\nThese workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H"
15+
},
16+
{
17+
"type": "CVSS_V4",
18+
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
19+
}
20+
],
21+
"affected": [
22+
{
23+
"package": {
24+
"ecosystem": "npm",
25+
"name": "n8n"
26+
},
27+
"ranges": [
28+
{
29+
"type": "ECOSYSTEM",
30+
"events": [
31+
{
32+
"introduced": "0"
33+
},
34+
{
35+
"fixed": "1.123.8"
36+
}
37+
]
38+
}
39+
]
40+
},
41+
{
42+
"package": {
43+
"ecosystem": "npm",
44+
"name": "n8n"
45+
},
46+
"ranges": [
47+
{
48+
"type": "ECOSYSTEM",
49+
"events": [
50+
{
51+
"introduced": "2.0.0"
52+
},
53+
{
54+
"fixed": "2.2.0"
55+
}
56+
]
57+
}
58+
]
59+
}
60+
],
61+
"references": [
62+
{
63+
"type": "WEB",
64+
"url": "https://github.com/n8n-io/n8n/security/advisories/GHSA-x2mw-7j39-93xq"
65+
},
66+
{
67+
"type": "WEB",
68+
"url": "https://github.com/n8n-io/n8n/commit/97365caf253978ba8e46d7bc53fa7ac3b6f67b32"
69+
},
70+
{
71+
"type": "WEB",
72+
"url": "https://github.com/n8n-io/n8n/commit/e22acaab3dcb2004e5fe0bf9ef2db975bde61866"
73+
},
74+
{
75+
"type": "PACKAGE",
76+
"url": "https://github.com/n8n-io/n8n"
77+
},
78+
{
79+
"type": "WEB",
80+
"url": "https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.8"
81+
},
82+
{
83+
"type": "WEB",
84+
"url": "https://github.com/n8n-io/n8n/releases/tag/n8n@2.2.0"
85+
}
86+
],
87+
"database_specific": {
88+
"cwe_ids": [
89+
"CWE-94"
90+
],
91+
"severity": "CRITICAL",
92+
"github_reviewed": true,
93+
"github_reviewed_at": "2026-02-25T21:54:19Z",
94+
"nvd_published_at": null
95+
}
96+
}

0 commit comments

Comments
 (0)