External risk intelligence

git-diff OS Command Injection Vulnerability

CVE advisorySeverity: CRITICAL (CVSS 9.3)

CVE-2026-110634

The vulnerability exists in a library (git-diff) used for processing diffed document strings. While it is network-accessible if a web application exposes the gitDiff API, libraries are frequently used in internal tools, build pipelines, or backend processing services that are not inherently public-facing by design. Public internet exposure depends entirely on the implementation choices of the developer.

OS Command Injection

Halo Surface Signal: 3 out of 5 — possibly public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A vulnerability in the git-diff library allows attackers to execute commands on the system by sending specially crafted strings to the gitDiff API. This could enable unauthorized command execution with Node.js process privileges.

  • Attackers can run commands through a flawed API.
  • Matters if we use this specific diff library.
  • Verify use and assess exposure risk.

Attack Path

How an attacker could exploit the issue

An attacker could exploit this vulnerability by tricking a system into processing a specially crafted diffed document string through the gitDiff API. This could involve embedding malicious commands within the string, which the gitDiff software would then execute with the privileges of the Node.js process.

  • Entry condition: Attacker controls a diffed document string.
  • Trigger point: The gitDiff API processes the string.
  • Resulting risk: Arbitrary shell command execution.

Live Threat

Current exploitation, exposure, and threat context

When supported by the advisory, unauthenticated attackers could execute arbitrary shell commands with Node.js process privileges by supplying specially crafted strings to the gitDiff API. This could impact systems processing diffed document strings.

  • System commands could be executed.
  • Via crafted diffed document strings.
  • Arbitrary code execution is possible.

Operational Fix

Recommended remediation, mitigation, and detection steps

Application owners or platform teams are likely responsible for addressing this OS command injection vulnerability in the git-diff library, as it affects how diffed document strings are processed. The initial focus should be on identifying all instances of the affected technology, assessing their exposure and criticality, and then assigning ownership to the appropriate team for remediation planning.

  • Identify affected systems and their owners.
  • Verify external reachability and business criticality.
  • Plan remediation based on risk and impact.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is the git-diff library used for?

The git-diff library is a software component designed for Node.js environments that processes and generates diffed document strings. Developers integrate it into applications to compare content, track changes, or visualize differences between data sets. It functions as a backend utility rather than an end-user application.

What does OS command injection mean for CVE-2026-110634?

This vulnerability is classified as CWE-78, OS Command Injection. It occurs when a program takes untrusted input and sends it to the system shell without proper sanitization. In CVE-2026-110634, the library incorrectly interprets malicious characters—like backticks or dollar signs—contained within a document string, allowing those characters to be executed as actual commands by the underlying operating system.

How can an attacker trigger this vulnerability?

An attacker triggers the bug by providing a specially crafted document string that includes shell command syntax, such as $(cmd). The vulnerability manifests specifically when the gitDiff API processes this malicious input. Standard strings that do not contain these specific control sequences will not trigger the command execution.

Is my application vulnerable to this issue?

Whether your application is at risk depends on how you use the library. According to Halo Surface Signal, the vulnerability is not inherently internet-facing; it depends on whether your implementation exposes the gitDiff API to untrusted inputs. You should check if your web services, backend pipelines, or internal tools pass externally sourced data directly into this API.

How should I respond to this threat?

The first step is to identify all software projects in your environment that include git-diff before version 2.0.7 as a dependency. Once located, assess if those systems process input from users or external sources. Prioritize updating the library to a non-vulnerable version and review your data handling practices to ensure inputs are validated before processing.

References