CVE-2026-110634
9.3critical
git-diff before 2.0.7 OS Command Injection via gitDiff Input Strings
- Severity
- 9.3critical CVSS:4.0 by VulnCheck
- Exploit likelihood
- 3.81% (higher than 90% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-6wfj-92cw-88vg
Description
git-diff before 2.0.7 contains an OS command injection vulnerability that allows attackers to execute shell commands by supplying crafted strings to the gitDiff API. Attackers who control a diffed document string can embed $(cmd) or backtick substitutions that shelljs.exec evaluates, running commands with Node.js process privileges.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| danday74 git-diff | before 2.0.7 | CVE List |
| git-diff (npm) | before 2.0.7 | GitHub Advisory Database |
All scores
| VulnCheck | 9.3critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
References
| https://github.com/danday74/git-diff/pull/16 | issue-tracking, patch, web | |
| https://github.com/danday74/git-diff/commit/bfd727b6cf1daa671c3528d1d681f55b70e8fb19 | patch, web | |
| https://github.com/danday74/git-diff/blob/a85a649badc4c6bba991e87e82382b7d3cdd6634/js/gitDiffReal/generateDiff/index.js#L26-L30 | technical-description, web | |
| https://github.com/danday74/git-diff | package, product | |
| https://www.vulncheck.com/advisories/git-diff-before-2.0.7-os-command-injection-via-gitdiff-input-strings | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-110634 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-110634 changed 2026-10-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-6wfj-92cw-88vg changed 2026-10-27 | CC-BY-4.0 |
| NVD | CVE-2026-110634 changed 2026-10-16 | Public domain |