{"schemaVersion":1,"id":"CVE-2026-110634","requestedId":"CVE-2026-110634","aliases":[],"status":"published","rawState":"Received","rawSeverityStatus":"Received","duplicateOf":null,"indexable":true,"title":null,"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.","dates":{"published":"2026-10-14T14:17:07.089Z","modified":"2026-10-14T17:34:01.053Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"cve.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"cve.org","score":9.3,"severity":"critical","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"cve.org","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"nvd","score":9.3,"severity":"critical","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"nvd","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":null,"percentile":null,"severity":"unknown","asOf":null,"change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[],"last30":[]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","evidence":[]},"exploits":[],"exploitCount":0,"exploitSources":[],"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html","capec":[{"id":"CAPEC-108","name":"Command Line Execution through SQL Injection","url":"https://capec.mitre.org/data/definitions/108.html"},{"id":"CAPEC-15","name":"Command Delimiters","url":"https://capec.mitre.org/data/definitions/15.html"},{"id":"CAPEC-43","name":"Exploiting Multiple Input Interpretation Layers","url":"https://capec.mitre.org/data/definitions/43.html"},{"id":"CAPEC-6","name":"Argument Injection","url":"https://capec.mitre.org/data/definitions/6.html"},{"id":"CAPEC-88","name":"OS Command Injection","url":"https://capec.mitre.org/data/definitions/88.html"}],"techniques":[],"countermeasures":[]}],"ttp":{"capecs":[{"id":"CAPEC-108","name":"Command Line Execution through SQL Injection","url":"https://capec.mitre.org/data/definitions/108.html","weaknessIds":["CWE-78"],"techniqueIds":[]},{"id":"CAPEC-15","name":"Command Delimiters","url":"https://capec.mitre.org/data/definitions/15.html","weaknessIds":["CWE-78"],"techniqueIds":[]},{"id":"CAPEC-43","name":"Exploiting Multiple Input Interpretation Layers","url":"https://capec.mitre.org/data/definitions/43.html","weaknessIds":["CWE-78"],"techniqueIds":[]},{"id":"CAPEC-6","name":"Argument Injection","url":"https://capec.mitre.org/data/definitions/6.html","weaknessIds":["CWE-78"],"techniqueIds":[]},{"id":"CAPEC-88","name":"OS Command Injection","url":"https://capec.mitre.org/data/definitions/88.html","weaknessIds":["CWE-78"],"techniqueIds":[]}],"techniques":[],"countermeasures":[],"countermeasuresByTactic":[]},"affected":[{"vendor":"danday74","product":"git-diff","name":"git-diff","label":"git-diff","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"source":null,"versions":[{"text":"< 2.0.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.7","eol":null}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/danday74/git-diff/pull/16","label":"github.com/danday74/git-diff/pull/16","hostname":"github.com","tags":["Issue Tracking","Patch"],"sources":["cve.org","nvd"]},{"url":"https://github.com/danday74/git-diff/commit/bfd727b6cf1daa671c3528d1d681f55b70e8fb19","label":"github.com/danday74/git-diff/commit/bfd727b6cf1daa671c3528d1d681f55b70e8fb19","hostname":"github.com","tags":["Patch"],"sources":["cve.org","nvd"]},{"url":"https://github.com/danday74/git-diff/blob/a85a649badc4c6bba991e87e82382b7d3cdd6634/js/gitDiffReal/generateDiff/index.js#L26-L30","label":"github.com/danday74/…","hostname":"github.com","tags":["Technical Description"],"sources":["cve.org","nvd"]},{"url":"https://github.com/danday74/git-diff","label":"github.com/danday74/git-diff","hostname":"github.com","tags":["Product"],"sources":["cve.org","nvd"]},{"url":"https://www.vulncheck.com/advisories/git-diff-before-2.0.7-os-command-injection-via-gitdiff-input-strings","label":"www.vulncheck.com/advisories/git-diff-before-2.0.7-os-command-injection-via-gitdiff-input-strings","hostname":"www.vulncheck.com","tags":["Third Party Advisory"],"sources":["cve.org","nvd"]}],"droppedReferenceCount":0,"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-14T14:17:07.089Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-14T17:34:01.053Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"default","profileName":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10},"appliedRules":["high-cvss-alone"]},"warnings":[],"meta":{"dataAsOf":"2026-10-14T21:21:31.047Z","stale":false,"partial":false}}