N8n-io n8n
n8n Vulnerable to Remote Code Execution via Git Node Custom Pre-Commit Hook
n8n is an open source workflow automation platform. Versions 0.123.1 through 1.119.1 do not have adequate protections to prevent RCE through the project's pre-commit hooks. The Add Config operation allows workflows to set arbitrary Git configuration values, including core.hooksPath, which can point to a malicious Git hook that executes arbitrary commands on the n8n host during subsequent Git operations. Exploitation requires the ability to create or modify an n8n workflow using the Git node. This issue is fixed in version 1.119.2. Workarounds include excluding the Git Node (Docs) and avoiding cloning or interacting with untrusted repositories using the Git Node.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.123.1, < 1.119.2
Fixed in 1.119.2
Mitigation
Upgrade n8n to 1.119.2 or later.
References
- Vendor advisory github.com/n8n-io/n8n/security/advisories/GHSA…
- Patch github.com/n8n-io/n8n/commit/d5a1171f95f75def5…
- Release notes github.com/n8n-io/n8n/releases/tag/n8n%401.119…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.6 informational
Informational 6
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Anthony558238/CVE-2025-65964-poc | 9 Dec 2025 +12 h | 0 | Informational · write-up |
| Syzygy-K/CVE-2025-65964-Exploit | 9 Dec 2025 +1 d | 4 | Informational · write-up |
| Geekby/n8n-CVE-2025-65964 | 10 Dec 2025 +1.1 d | 0 | Informational · write-up |
| Saboor-Hakimi-23/CVE-2025-65964 | 13 Dec 2025 +4.3 d | 0 | Informational · write-up |
| Pinus97/CVE-2025-65964-POC | 23 Dec 2025 +14 d | 0 | Informational · write-up |
| nn0nkey/repo | 9 Jan 2026 +32 d | 0 | Informational · write-up |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.