{"id":"CVE-2025-65964","aliases":["GHSA-wpqc-h9wp-chmq"],"url":"https://o3.security/vulnerability/CVE-2025-65964","summary":"n8n Vulnerable to Remote Code Execution via Git Node Custom Pre-Commit Hook","details":"### 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.","published":"2025-12-08T23:35:02.481Z","modified":"2026-10-28T02:31:12.100328895Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"npm","name":"n8n","fixedVersion":"1.119.2"}],"fix":{"url":"https://github.com/n8n-io/n8n/commit/d5a1171f95f75def5c3ac577707ab913e22aef04","label":"n8n-io/n8n@d5a1171"},"references":[{"type":"WEB","url":"https://github.com/n8n-io/n8n/releases/tag/n8n%401.119.2"},{"type":"WEB","url":"https://n8n-docs.teamlab.info/hosting/securing/blocking-nodes/#exclude-nodes"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/65xxx/CVE-2025-65964.json"},{"type":"ADVISORY","url":"https://github.com/n8n-io/n8n/security/advisories/GHSA-wpqc-h9wp-chmq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-65964"},{"type":"FIX","url":"https://github.com/n8n-io/n8n/commit/d5a1171f95f75def5c3ac577707ab913e22aef04"},{"type":"PACKAGE","url":"https://github.com/n8n-io/n8n"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:31:12.100328895Z"}}