CVE-2025-65964CWE-829

CVE-2025-65964

High · published December 9, 2025

CVSS v3.1
8.8
EPSS
1%
Percentile
51.1
In the wild
Unconfirmed
What it is

🔥 A sneaky flaw in n8n's pre-commit hooks can pave the way for remote code execution! 😱 Think of it like a restaurant where the chefs can secretly change the recipes without the manager's knowledge. If a chef points the recipe book to a malicious version, they could serve up something hazardous to diners — your system could be at risk with each Git operation! An attacker with the ability to modify an n8n workflow could set a malicious Git hook that executes arbitrary commands on your host. This could lead to data breaches, unauthorized access, or even complete system compromise — an absolutely devastating scenario for your operations!

Put simply

Think of it like a restaurant where the chefs can secretly change the recipes without the manager's knowledge. If a chef points the recipe book to a malicious version, they could serve up something hazardous to diners — your system could be at risk with each Git operation! This vulnerability allows the Add Config operation in n8n to set arbitrary Git configuration values, including core.hooksPath, which can lead to executing malicious commands hidden in Git hooks during workflows involving the Git node.

What to do

An attacker with the ability to modify an n8n workflow could set a malicious Git hook that executes arbitrary commands on your host. This could lead to data breaches, unauthorized access, or even complete system compromise — an absolutely devastating scenario for your operations! Upgrade your n8n instance to version 1.119.2 immediately to patch this critical vulnerability. Additionally, consider excluding the Git Node from workflows or avoiding interaction with untrusted repositories to minimize risk. Stay vigilant! You've got this! Follow these steps, and you'll have your n8n workflows secured in no time! 🛡️

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00663 · 51.1th percentile
Weakness
CWE-829 · Inclusion of Functionality from Untrusted Control Sphere
Published
2025-12-09T05:15Z
Affected products (1)
ProductVersionsFixed in
n8n/n8n≥ 0.123.1, < 1.119.21.119.2
References (4)
EPSS history
Timeline
  • 08 DEC 23:35Z
    n8n Vulnerable to Remote Code Execution via Git Node Custom Pre-Commit Hook
    cvelistv5