---
title: "CVE-2025-65964: n8n vulnerable to Remote Code Execution via Git Node Custom Pre-Commit Hook"
url: https://erroneo.us/security/cve/CVE-2025-65964/
description: "CVE-2025-65964 (n8n (npm)): n8n is an open source workflow automation platform. Versions 0.123.1 through 1.119.1 do not have adequate protections to prevent…"
type: vulnerability-record
section: "Security Digest"
date_published: 2025-12-08
date_modified: 2025-12-09
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2025-65964"
kev: false
cvss: 9.4
epss: 0.00663
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2025-65964: n8n vulnerable to Remote Code Execution via Git Node Custom Pre-Commit Hook

**Signal:** Critical, preconditions apply. Severe if exploited, but exploitation needs conditions that may not apply to you. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 0.7% , percentile 51: FIRST’s model estimates a 0.7% chance of exploitation activity in the next 30 days, higher than 51% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Needs an account (low (any account)). Exposure depends on who can log in.
- Only applies if your dependency tree includes n8n (npm) >= 0.123.1, < 1.119.2, fixed in 1.119.2 . Check your lockfile, including transitive dependencies.

## What it is

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 packages

- npm `n8n` >= 0.123.1, < 1.119.2 → fixed: 1.119.2

## Affected products (CVE record)

- n8n-io n8n: >= 0.123.1, < 1.119.2

## Severity

- GitHub_M CVSS 4.0: 9.4 `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`
- GitHub CVSS 4.0: 9.4 `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`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.66% probability of exploitation activity in the next 30 days; percentile 51.

## Sources

- [GitHub Advisory GHSA-wpqc-h9wp-chmq](https://github.com/advisories/GHSA-wpqc-h9wp-chmq)
- [CVE.org record CVE-2025-65964](https://www.cve.org/CVERecord?id=CVE-2025-65964)
- [NVD entry CVE-2025-65964](https://nvd.nist.gov/vuln/detail/CVE-2025-65964)
- [github.com](https://github.com/n8n-io/n8n/security/advisories/GHSA-wpqc-h9wp-chmq)
- [github.com](https://github.com/n8n-io/n8n/commit/d5a1171f95f75def5c3ac577707ab913e22aef04)
- [github.com](https://github.com/n8n-io/n8n/releases/tag/n8n%401.119.2)
- [n8n-docs.teamlab.info](https://n8n-docs.teamlab.info/hosting/securing/blocking-nodes/#exclude-nodes)

---
Source page: https://erroneo.us/security/cve/CVE-2025-65964/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
