CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Dashboard
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-21877
9.9

Git Hooked: RCE in n8n's Git Node

Amit Schendel
Amit Schendel
Senior Security Researcher

Jan 7, 2026·6 min read·72 visits

PoC Available

Executive Summary (TL;DR)

n8n's Git node failed to block writes to the `.git/hooks` directory. Authenticated attackers could use this to write a malicious `pre-commit` hook and trigger it, achieving Remote Code Execution (RCE) on the host server with the privileges of the n8n process.

A critical RCE vulnerability in the n8n workflow automation platform allows authenticated users to execute arbitrary code by manipulating the Git node to write malicious hooks into the repository's `.git` directory.

Official Patches

n8nn8n Release 1.121.3

Technical Appendix

CVSS Score
9.9/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected Systems

n8n workflow automation platform < 1.121.3

Affected Versions Detail

Product
Affected Versions
Fixed Version
n8n
n8n
< 1.121.31.121.3
AttributeDetail
CWECWE-94 (Code Injection) / CWE-22 (Path Traversal)
CVSS v3.19.9 (Critical)
Attack VectorNetwork (Authenticated)
Privileges RequiredLow (User capable of editing workflows)
ImpactRemote Code Execution (RCE)
StatusPatched (v1.121.3)

MITRE ATT&CK Mapping

T1059.004Command and Scripting Interpreter: Unix Shell
Execution
T1213.002Data from Information Repositories: Code Repositories
Collection
T1190Exploit Public-Facing Application
Initial Access
CWE-94
Code Injection

Improper Control of Generation of Code ('Code Injection')

Known Exploits & Detection

TheoryStandard Git Hook RCE via file write

Vulnerability Timeline

n8n version 1.121.3 released with fix
2025-11-26
CVE-2026-21877 Published
2026-01-06

References & Sources

  • [1]GitHub Advisory
  • [2]n8n Node Blocking Documentation

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.