CVE-2025-65964
JSON

9.4critical

n8n Vulnerable to Remote Code Execution via Git Node Custom Pre-Commit Hook

Severity
9.4critical CVSS:4.0 by GitHub_M
Exploit likelihood
0.71% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-wpqc-h9wp-chmq

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.

Affected

Product or packageVersionsReported by
n8n-io n8n>= 0.123.1, < 1.119.2CVE List
n8n (npm)from 0.123.1 before 1.119.2GitHub Advisory Database
n8n n8nfrom 0.123.1 before 1.119.2NVD

All scores

GitHub_M9.4critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-829

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

The n8n Git node allows workflows to set arbitrary Git configuration values through the Add Config operation. When an attacker-controlled workflow sets core.hooksPath to a directory within the cloned repository containing a Git hook such as pre-commit, Git executes that hook during subsequent Git operations. Because Git hooks run as local system commands, this behavior can lead to arbitrary command execution on the underlying n8n host.

Successful exploitation requires the ability to create or modify an n8n workflow that uses the Git node.

Affected versions: ≥ 0.123.1 and < 1.119.2

Patches

This issue has been patched in n8n version 1.119.2.

All users running affected versions should upgrade to 1.119.2 or later.

Workarounds

If upgrading is not immediately possible, the following mitigations can reduce exposure:

  • Exclude the Git node (Docs).
  • Avoid cloning or interacting with untrusted repositories using the Git Node.
NVD (es)

n8n es una plataforma de automatización de flujos de trabajo de código abierto. Las versiones 0.123.1 a la 1.119.1 no tienen protecciones adecuadas para prevenir RCE a través de los ganchos de pre-commit del proyecto. La operación Add Config permite a los flujos de trabajo establecer valores de configuración de Git arbitrarios, incluyendo core.hooksPath, que puede apuntar a un gancho de Git malicioso que ejecuta comandos arbitrarios en el host de n8n durante operaciones de Git posteriores. La explotación requiere la capacidad de crear o modificar un flujo de trabajo de n8n utilizando el nodo Git. Este problema está solucionado en la versión 1.119.2. Las soluciones alternativas incluyen excluir el Nodo Git (Docs) y evitar clonar o interactuar con repositorios no confiables utilizando el Nodo Git.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-65964 changed 2025-12-09CVE Terms of Use
GitHub Advisory DatabaseGHSA-wpqc-h9wp-chmq changed 2025-12-09CC-BY-4.0
NVDCVE-2025-65964 changed 2026-10-14Public domain