{"id":"CVE-2025-65964","aliases":["CVE-2025-65964","GHSA-wpqc-h9wp-chmq"],"related":[],"kind":"vulnerability","state":"published","title":"n8n Vulnerable to Remote Code Execution via Git Node Custom Pre-Commit Hook","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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":"cvelist"},{"lang":"en","text":"### Impact\n\nThe 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.\n\nSuccessful exploitation requires the ability to create or modify an n8n workflow that uses the Git node.\n\nAffected versions: **≥ 0.123.1 and < 1.119.2**\n\n### Patches\n\nThis issue has been patched in **n8n version 1.119.2**.\n\nAll users running affected versions should upgrade to **1.119.2 or later**.\n\n### Workarounds\n\nIf upgrading is not immediately possible, the following mitigations can reduce exposure:\n\n- Exclude the Git node ([Docs](https://n8n-docs.teamlab.info/hosting/securing/blocking-nodes/#exclude-nodes)).\n- Avoid cloning or interacting with untrusted repositories using the Git Node.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-12-08T21:30:07.000Z","modified":"2026-10-14T22:10:00.210Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":9.4,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":9.4,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-829"],"affected":[{"ranges":[{"version":">= 0.123.1, < 1.119.2","status":"affected"}],"vendor":"n8n-io","product":"n8n","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.123.1","status":"affected","fixed":"1.119.2"}],"ecosystem":"npm","package":"n8n","purl":"pkg:npm/n8n","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.123.1","fixed":"1.119.2"}],"vendor":"n8n","product":"n8n","cpe":"cpe:2.3:a:n8n:n8n:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-wpqc-h9wp-chmq","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/n8n-io/n8n/commit/d5a1171f95f75def5c3ac577707ab913e22aef04","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/n8n-io/n8n/releases/tag/n8n%401.119.2","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://n8n-docs.teamlab.info/hosting/securing/blocking-nodes/#exclude-nodes","tags":["third-party-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65964","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/n8n-io/n8n","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-12-09T14:18:38.524Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-65964","url":"https://www.cve.org/CVERecord?id=CVE-2025-65964","licence":"CVE Terms of Use","modified":"2025-12-09T16:04:14.528Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wpqc-h9wp-chmq","url":"https://github.com/advisories/GHSA-wpqc-h9wp-chmq","licence":"CC-BY-4.0","modified":"2025-12-09T17:31:40.017Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-65964","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65964","licence":"Public domain","modified":"2026-10-14T22:10:00.210Z"}],"updatedAt":"2026-11-25T22:59:08.455Z","epss":{"score":0.00711,"percentile":0.54769,"date":"2026-12-01T12:00:22.000Z"}}