{"id":"GHSA-wpqc-h9wp-chmq","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 \u003c 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.","aliases":["CVE-2025-65964"],"modified":"2025-12-09T17:31:40.017214Z","published":"2025-12-08T21:30:07Z","database_specific":{"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2025-12-08T21:30:07Z","nvd_published_at":"2025-12-09T00:15:48Z","cwe_ids":["CWE-829"]},"references":[{"type":"WEB","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":"WEB","url":"https://github.com/n8n-io/n8n/commit/d5a1171f95f75def5c3ac577707ab913e22aef04"},{"type":"PACKAGE","url":"https://github.com/n8n-io/n8n"},{"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"}],"affected":[{"package":{"name":"n8n","ecosystem":"npm","purl":"pkg:npm/n8n"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.123.1"},{"fixed":"1.119.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/12/GHSA-wpqc-h9wp-chmq/GHSA-wpqc-h9wp-chmq.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}