# CVE-2026-110634: git-diff before 2.0.7 OS Command Injection via gitDiff Input Strings

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `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`
- 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): 3.81%, higher than 90% of CVEs (2026-12-01)
- Published: 2026-10-14T14:17:07.089Z
- Modified: 2026-10-27T16:15:05.342Z
- Also known as: GHSA-6wfj-92cw-88vg
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- danday74 git-diff: before 2.0.7
- git-diff (npm): before 2.0.7

## Every score

- VulnCheck: CVSS:4.0 9.3 Critical `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: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`

## 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

- CVE List: [CVE-2026-110634](https://www.cve.org/CVERecord?id=CVE-2026-110634), CVE Terms of Use, modified 2026-10-14
- GitHub Advisory Database: [GHSA-6wfj-92cw-88vg](https://github.com/advisories/GHSA-6wfj-92cw-88vg), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-110634](https://nvd.nist.gov/vuln/detail/CVE-2026-110634), Public domain, modified 2026-10-16

---

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