OS Command Injection in n8n Git node
CVE-2026-25053 is a critical vulnerability in the n8n workflow automation platform affecting versions prior to 1.123.10 and 2.5.0. The flaw is in the Git node and allows authenticated users with permission to create or modify workflows to execute arbitrary system commands on the host running n8n. The provided content also states the same issue can be abused to read arbitrary files from the n8n host, indicating the Git node breaks isolation between workflow-level functionality and host-level resources. In practice, a user able to edit workflows can abuse Git node functionality to trigger command execution in the underlying operating system context and access sensitive local files.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.
Repository is a small PoC labeled CVE-2026-25053 consisting of 4 files: (1) README.md with only the CVE title, (2) .gitattributes setting '* filter=evil' to apply a Git filter to all files, (3) file.txt containing a Git config snippet defining filter "evil" with clean/smudge commands set to "calc.exe" (Windows command execution demo), and (4) workflow.json, an n8n workflow that automates exploitation steps. The n8n workflow structure: Manual Trigger → Git node (clone) clones https://github.com/yadhukrishnam/CVE-2026-25053 into C:\Users\yadhu\.n8n-files\poc → Read/Write node reads a local file (C:\Users\yadhu\.n8n-files\test\file.txt) → Read/Write node appends content into C:\Users\yadhu\.n8n-files\poc\.git\config (injecting the malicious filter definition) → Git node runs 'add' on file.txt. With the attribute forcing the filter and the filter commands defined, subsequent Git operations that invoke clean/smudge can execute the configured command (calc.exe). This is a command-execution PoC rather than a scanner/detector, and it is not a Metasploit/Nuclei module; it is an n8n automation workflow demonstrating a Git-filter-based execution chain.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A critical vulnerability in n8n’s Git node enabling authenticated workflow users to execute system commands and/or access arbitrary files on the host due to unsafe handling of untrusted input.
Authenticated OS command injection in n8n Git node enabling arbitrary command execution and/or arbitrary file read on the n8n host.
OS command injection in n8n Git node enabling authenticated workflow authors to execute system commands or read arbitrary files on the host.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.