{"id":"CVE-2026-110634","revision":"c24a517716b14853a10c0eb040ba68d2","records":[{"revision":"c24a517716b14853a10c0eb040ba68d2","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-110634","aliases":[],"title":"git-diff before 2.0.7 OS Command Injection via gitDiff Input Strings","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.","state":0,"publishedAt":"2026-10-14T14:17:07.089+00:00","modifiedAt":"2026-10-14T17:34:01.053+00:00","affected":[{"ecosystem":"https://www.npmjs.com/package/git-diff","name":"git-diff","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"danday74\",\n                    \"product\": \"git-diff\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"2.0.7\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"packageURL\": \"pkg:npm/git-diff\",\n                    \"collectionURL\": \"https://www.npmjs.com/package/git-diff\",\n                    \"repo\": \"https://github.com/danday74/git-diff\"\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":9.3,"severity":"CRITICAL"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"severity":"CRITICAL"}],"references":["https://github.com/danday74/git-diff/pull/16","https://github.com/danday74/git-diff/commit/bfd727b6cf1daa671c3528d1d681f55b70e8fb19","https://github.com/danday74/git-diff/blob/a85a649badc4c6bba991e87e82382b7d3cdd6634/js/gitDiffReal/generateDiff/index.js#L26-L30","https://github.com/danday74/git-diff","https://www.vulncheck.com/advisories/git-diff-before-2.0.7-os-command-injection-via-gitdiff-input-strings"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-110634","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-110634","identifiers":["CVE-2026-110634"]},"retained":false,"historicalAffected":[]}],"coverage":[]}