
This laboratory provides a controlled environment to analyze and reproduce CVE-2025-68613 in a vulnerable n8n instance.
This repository contains a security laboratory intended strictly for educational and ethical purposes.
The author assumes no responsibility for misuse of the information, configurations, or proof-of-concept code provided in this repository.
This laboratory deploys a vulnerable instance of n8n (v1.120.3) alongside a PostgreSQL database in order to study and reproduce the impact of CVE-2025-68613 in a controlled environment.
The lab is designed for:
When the environment is started for the first time, n8n will prompt the user to create a new account via the web interface.
Verify installation:
docker --version
docker compose version
git clone https://github.com/LingerANR/n8n-CVE-2025-68613.git
cd n8n-CVE-2025-68613
docker compose build --no-cache
docker compose up -d
docker compose logs -f n8n
Access the web interface at:
http://localhost:5678
On first access, n8n will request creation of a new user account.
This laboratory is intended to be used with a custom Proof of Concept developed by the author, which demonstrates the impact of CVE-2025-68613 under authenticated conditions.
python3 CVE-2025-68613.py -u http://localhost:5678 -e '[email protected]' -p '.Tester123' --command 'cat /etc/passwd'
python3 CVE-2025-68613.py -u http://localhost:5678 -e '[email protected]' -p '.Tester123' --command 'cat /etc/passwd' --proxy 'http://127.0.0.1:8080'
| Parameter | Description |
|---|---|
-u | URL of the n8n instance |
-e | Email of a valid authenticated user |
The PoC must only be executed against this laboratory.
To fully reset the lab (containers, volumes, and data):
docker compose down -v --remove-orphans
Then rebuild:
docker compose up -d --build
This laboratory exists to:
All testing should be performed responsibly and legally.
-p| Password of the user |
--command | Command executed within the vulnerable context |