Exploit database

Vulnerability

CVE-2025-68613

n8n Vulnerable to Remote Code Execution via Expression Injection

Vulnerability details

Score
10.0
Severity
critical

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Description

n8n is an open source workflow automation platform. Versions starting with 0.211.0 and prior to 1.120.4, 1.121.1, and 1.122.0 contain a critical Remote Code Execution (RCE) vulnerability in their workflow expression evaluation system. Under certain conditions, expressions supplied by authenticated users during workflow configuration may be evaluated in an execution context that is not sufficiently isolated from the underlying runtime. An authenticated attacker could abuse this behavior to execute arbitrary code with the privileges of the n8n process. Successful exploitation may lead to full compromise of the affected instance, including unauthorized access to sensitive data, modification of workflows, and execution of system-level operations. This issue has been fixed in versions 1.120.4, 1.121.1, and 1.122.0. Users are strongly advised to upgrade to a patched version, which introduces additional safeguards to restrict expression evaluation. 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 deploy n8n in a hardened environment with restricted operating system privileges and network access to reduce the impact of potential exploitation. These workarounds do not fully eliminate the risk and should only be used as short-term measures.

CVE Program

Exploit source choices

11 sources
n8n Workflow Expression Remote Code Execution
MSF-multi--http--n8n_workflow_expression_rceMetasploitLinux,Unix,Windows / remotePreferred

This module exploits a critical remote code execution vulnerability (CVE-2025-68613) in the n8n workflow automation platform. The vulnerability exists in the workflow expression evaluation system where user-supplied expressions enclosed in {{ }} are evaluated in an execution context that is not sufficiently isolated from the underlying Node.js runtime. An authenticated attacker can create a workflow containing malicious expressions that access the Node.js process object via this.process.mainModule.require (or via the constructor) to load child_process and execute arbitrary system commands. This module uses a Schedule Trigger node to automatically fire and evaluate the malicious payload. This requires valid credentials to create workflows. Successful exploitation may lead to full compromise of the n8n instance, including unauthorized access to sensitive data, modification of workflows, and execution of system-level operations. Affected versions: >= 0.211.0 and < 1.120.4, < 1.121.1, < 1.122.0

2025-06-10n8n_workflow_expression_rce.rb
thestingr/cve-2025-68613-poc
GH-edca782d4583cfa12fef96608c656a79GitHubUnofficial GitHub source

Public PoC + Scanner and research for CVE-2025-68613: Critical RCE in n8n Workflow Automation via Expression Injection (CVSS 10.0). Includes detection tools, full exploit, and remediation guidance.

2025-12-2210 files · 29 stars
lingeranr/n8n-cve-2025-68613
GH-cbdd58b7031567b55365a1d8b9f3c392GitHubUnofficial GitHub source

This laboratory provides a controlled environment to analyze and reproduce CVE-2025-68613 in a vulnerable n8n instance.

2025-12-265 files · 7 stars
rianjuniorsf/analysis-and-poc-n8n-cve-2025-68613
GH-0f6758856cad91bb67e8124ba4eae625GitHubUnofficial GitHub source

Technical study of the CVE-2025-68613 vulnerability in n8n, covering affected versions, laboratory exploration scenario, offensive and defensive analysis, and mitigation strategies.

2025-12-2510 files · 1 stars
abdulrkb/n8n-rce
GH-439e2993450bb40b48973b7d2ea144c7GitHubUnofficial GitHub source

Proof of Concept (PoC) Script for Remote Code Execution via n8n Workflows (Based on CVE-2025-68613)

2025-12-253 files · 0 stars
bijoumj/cve-2025-68613-ctf
GH-a81ca5424b42278c18a031255035e605GitHubUnofficial GitHub source

ctf 문제 만들기

2026-10-138 files · 0 stars
cv-sai-kamesh/n8n-cve-2025-68613
GH-e29670857aaf3e2a32341eb46109b264GitHubUnofficial GitHub source

cv-sai-kamesh/n8n-cve-2025-68613 source repository

2025-12-2912 files · 0 stars