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

Published Dec 8, 2025
·
Updated

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.

Other sources

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.

MITRE

Affected Software

2 affected componentsFixes available
npm/n8n>=0.123.1<1.119.2
1.119.2
n8n N8n Node.js>=0.123.1<1.119.2

Event History

Dec 8, 2025
Advisory Published
via GitHub·09:30 PM
Data Sourced
via GitHub·09:30 PM
DescriptionWeaknessAffected Software
CVE Published
via MITRE·11:35 PM
Data Sourced
via MITRE·11:35 PM
DescriptionWeakness
Dec 9, 2025
Data Sourced
via NVD·12:15 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:15 AM
RemedyAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-65964?

CVE-2025-65964 is rated as a critical vulnerability due to the potential for executing malicious Git hooks.

2

How do I fix CVE-2025-65964?

To fix CVE-2025-65964, upgrade your n8n installation to version 1.119.2 or later.

3

What systems are affected by CVE-2025-65964?

CVE-2025-65964 affects n8n versions between 0.123.1 and 1.119.2.

4

What is the main issue with CVE-2025-65964?

The main issue with CVE-2025-65964 is that it allows attackers to execute arbitrary Git hooks via manipulated workflows.

5

Can CVE-2025-65964 be exploited remotely?

Yes, CVE-2025-65964 can be exploited remotely if attackers can control the n8n workflows.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203