# CVE-2026-65598: n8n before 1.123.64 Remote Code Execution via Git Clone

- Severity: High 8.9 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:L/SA:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-07-22T11:21:45.418Z
- Modified: 2026-10-29T21:16:27.353Z
- Also known as: GHSA-g3r5-9h93-4j2c
- Related: CVE-2026-71539
- Weaknesses: CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

n8n before 1.123.64, 2.29.8, and 2.30.1 contains a TOCTOU race condition in the Git node's clone operation that allows authenticated users to bypass path restrictions by swapping a directory for a symlink after the path is validated but before the clone runs. This lets an attacker plant a crafted repository in the community node directory, which n8n loads as a custom node on the next restart, executing arbitrary JavaScript on the server. Both self-hosted and cloud instances are affected.

(As written by CVE List.)

## Affected

- n8n-io n8n: before 1.123.64; from 2.30.0 before 2.30.1; from 2.0.0-rc.0 before 2.29.8 (not affected: 1.123.64; 2.30.1; 2.29.8)
- n8n (npm): before 1.123.64; from 2.30.0 before 2.30.1; from 2.0.0-rc.0 before 2.29.8
- n8n n8n: before 1.123.64; from 2.0.0 before 2.29.8; 2.30.0

## Every score

- VulnCheck: CVSS:4.0 8.9 High `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:L/SA:L`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:L/SA:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/n8n-io/n8n/security/advisories/GHSA-g3r5-9h93-4j2c> (mitigation, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/n8n-before-remote-code-execution-via-git-clone> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-65598> (advisory)
- <https://github.com/n8n-io/n8n> (package)
- <https://github.com/n8n-io/n8n/releases/tag/n8n@1.123.64> (web)
- <https://github.com/n8n-io/n8n/releases/tag/n8n@2.29.8> (web)
- <https://github.com/n8n-io/n8n/releases/tag/n8n@2.30.1> (web)

## Sources

- CVE List: [CVE-2026-65598](https://www.cve.org/CVERecord?id=CVE-2026-65598), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-g3r5-9h93-4j2c](https://github.com/advisories/GHSA-g3r5-9h93-4j2c), CC-BY-4.0, modified 2026-08-19
- NVD: [CVE-2026-65598](https://nvd.nist.gov/vuln/detail/CVE-2026-65598), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-65598 · Whole record: https://cve.day/CVE-2026-65598.json · Rebuilt by cve.day 2026-11-25T22:59:29.810Z
