n8n < 1.113.0 - Remote Code Execution via Git Node Pre-Commit Hook
Title source: llmExploitation Summary
EIP tracks 3 public exploits for CVE-2025-62726. PoCs published by adminlove520, baktistr, Muzyli.
AI-analyzed exploit summary This repository contains a functional PoC for CVE-2025-62726, demonstrating RCE in n8n via malicious Git pre-commit hooks. It includes a Docker setup for a vulnerable n8n instance and a workflow to trigger the exploit.
Description
n8n is an open source workflow automation platform. Prior to 1.113.0, a remote code execution vulnerability exists in the Git Node component available in both Cloud and Self-Hosted versions of n8n. When a malicious actor clones a remote repository containing a pre-commit hook, the subsequent use of the Commit operation in the Git Node can inadvertently trigger the hook’s execution. This allows attackers to execute arbitrary code within the n8n environment, potentially compromising the system and any connected credentials or workflows. This vulnerability is fixed in 1.113.0.
Exploits (3)
This repository contains a functional PoC for CVE-2025-62726, demonstrating RCE in n8n via malicious Git pre-commit hooks. It includes a Docker setup for a vulnerable n8n instance and a workflow to trigger the exploit.
This PoC demonstrates a Remote Code Execution (RCE) vulnerability in n8n's Git Node via malicious Git pre-commit hooks. The exploit leverages the automatic execution of untrusted Git hooks during commit operations to achieve arbitrary code execution.
References (3)
Scores
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H