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.

Project Subscriptions

Vendors Products
Git-diff-apply Project Subscribe
Git-diff-apply Subscribe
Advisories

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Wed, 14 Oct 2026 14:30:00 +0000

Type Values Removed Values Added
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.
Title git-diff before 2.0.7 OS Command Injection via gitDiff Input Strings
First Time appeared Git-diff-apply Project
Git-diff-apply Project git-diff-apply
Weaknesses CWE-78
CPEs cpe:2.3:a:git-diff-apply_project:git-diff-apply:*:*:*:*:*:*:*:*
Vendors & Products Git-diff-apply Project
Git-diff-apply Project git-diff-apply
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, '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'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-14T14:17:07.089Z

Reserved: 2026-10-14T13:07:31.423Z

Link: CVE-2026-110634

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-14T15:17:16.417

Modified: 2026-10-14T15:17:16.417

Link: CVE-2026-110634

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses