CVE-2025-65964

Published Dec 9, 2025

Last updated 4 days ago

Overview

AI description

Automated description summarized from trusted sources.

CVE-2025-65964 affects n8n, an open-source workflow automation platform, specifically versions 0.123.1 through 1.119.1. The vulnerability lies in the Git node, where the "Add Config" operation permits setting arbitrary Git configuration values. By manipulating the `core.hooksPath` setting, an attacker can point Git to a malicious directory containing Git hooks (e.g., pre-commit). When a workflow controlled by an attacker sets the `core.hooksPath` to a directory with a malicious Git hook, that hook will be executed during subsequent Git operations. Because Git hooks are executed as local system commands, this can lead to arbitrary command execution on the n8n host. Exploitation requires the ability to create or modify an n8n workflow that uses the Git node. Version 1.119.2 addresses this vulnerability.

Description
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.
Source
security-advisories@github.com
NVD status
Awaiting Analysis

Risk scores

CVSS 4.0

Type
Secondary
Base score
9.4
Impact score
-
Exploitability score
-
Vector string
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Severity
CRITICAL

Weaknesses

security-advisories@github.com
CWE-829

Social media

Hype score
Not currently trending