CVE-2026-110634 PUBLISHED

git-diff before 2.0.7 OS Command Injection via gitDiff Input Strings

Assigner: VulnCheck
Reserved: 14.10.2026 Published: 14.10.2026 Updated: 14.10.2026

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.

Metrics

CVSS 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
CVSS Score: 9.3

Product Status

Vendor danday74
Product git-diff
Versions Default: unaffected
  • affected from 0 to 2.0.7 (excl.)

Credits

  • Zachariah Mithani finder

References

Problem Types

  • Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') CWE