{"id":"CVE-2026-110634","published":"2026-10-14T15:17:16.417","lastModified":"2026-10-16T19:18:44.867","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.","cvssScore":9.8,"cvssSeverity":"CRITICAL","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwes":["CWE-78"],"vendors":[],"products":[],"references":[{"url":"https://github.com/danday74/git-diff","tags":[]},{"url":"https://github.com/danday74/git-diff/blob/a85a649badc4c6bba991e87e82382b7d3cdd6634/js/gitDiffReal/generateDiff/index.js#L26-L30","tags":[]},{"url":"https://github.com/danday74/git-diff/commit/bfd727b6cf1daa671c3528d1d681f55b70e8fb19","tags":[]},{"url":"https://github.com/danday74/git-diff/pull/16","tags":[]},{"url":"https://www.vulncheck.com/advisories/git-diff-before-2.0.7-os-command-injection-via-gitdiff-input-strings","tags":[]}],"exploitRefs":[{"url":"https://github.com/danday74/git-diff","tags":[]},{"url":"https://github.com/danday74/git-diff/blob/a85a649badc4c6bba991e87e82382b7d3cdd6634/js/gitDiffReal/generateDiff/index.js#L26-L30","tags":[]},{"url":"https://github.com/danday74/git-diff/commit/bfd727b6cf1daa671c3528d1d681f55b70e8fb19","tags":[]},{"url":"https://github.com/danday74/git-diff/pull/16","tags":[]}],"hasPoc":true,"ai":{"summary":"This vulnerability allows attackers to inject and execute arbitrary OS commands through the git-diff API by embedding shell command substitutions in diffed document strings. The flaw is critical because it can lead to complete system compromise when Node.js process privileges are leveraged.","exploitability":"Exploitation is straightforward for attackers who can control diffed document content, requiring only the ability to inject $(cmd) or backtick syntax that gets evaluated by shelljs.exec.","blast_radius":"The impact could be severe across any system running vulnerable git-diff versions, particularly affecting web applications that process user-submitted diffs or document content through this API.","remediation":"Upgrade to git-diff version 2.0.7 or later to remediate the OS command injection vulnerability.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["rce","os-command-injection","web","nodejs"],"model":"garnet-coder","analyzedAt":"2026-10-15T08:48:26.328Z"}}