Skip to main content

GitHub MCP Server CVE-2026-102906

| EUVDEUVD-2026-89579 LOW
OS Command Injection (CWE-78)
2026-09-30 VulDB GHSA-7v7v-c4gg-gf73
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed MCP server tool
  2. Delivery
    Craft File argument with shell metacharacters
  3. Exploit
    Injected string reaches child_process.exec
  4. Execution
    Arbitrary OS commands run as server user
  5. Impact
    Host compromise / data access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to control or influence the 'File' argument of the Git Remove MCP Tool, which is concatenated into a command string executed by child_process.exec in src/github.ts without sanitization. Realistic reach depends on how the github-mcp-server is deployed: if exposed over a network-accessible MCP transport, remote invocation is possible (matching AV:N), but if run locally over stdio by a single LLM client the exposure is confined to whatever can feed input to that client. PR:L indicates the tool-invocation interface must be reachable/usable by the attacker. No user interaction is required (UI:N). No vendor fix exists - the project uses a rolling release and the maintainer has not responded to the issue report - so no patched version can be pinned.

Impact

The signals are mixed and skew toward moderate-but-real rather than urgent. The CWE-78 OS command injection in child_process.exec is a genuinely high-impact bug class (arbitrary command execution in the MCP server's host context), yet the VulDB-assigned CVSS 4.0 score is only 5.3, driven down by PR:L and the conservative Low-across-the-board impact ratings (VC:L/VI:L/VA:L). A true command-injection-to-RCE would normally justify High impacts, so the vendor score likely understates technical impact - VulDB routinely rates conservatively. The E:P (Proof-of-Concept) exploit-maturity metric aligns with the confirmed public PoC in GitHub issue #2. There is NO CISA KEV listing and NO EPSS score provided, so there is no evidence of active or automated exploitation - this is 'publicly available exploit code exists,' not confirmed in-the-wild abuse. The 'attack can be executed remotely' (AV:N) claim deserves scrutiny: MCP servers are frequently invoked locally over stdio by an LLM client, so real reachability depends on whether this instance is exposed over a network transport - verify deployment mode. Net: low real-world priority owing to the product's tiny footprint and unresponsive maintainer, but the underlying flaw is legitimately dangerous where the server is exposed.

Exploit ScenarioDerived

An attacker who can influence the 'File' argument passed to the Git Remove MCP tool (for example via a malicious or manipulated MCP client request, or crafted content an LLM agent forwards to the tool) embeds shell metacharacters that are passed unsanitized into child_process.exec in src/github.ts. When the tool runs, the injected commands execute on the host with the privileges of the MCP server process. A public proof-of-concept exists in the project's GitHub issue #2, lowering the barrier to reproduction.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 1.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 30, 2026

OS command injection in the Git Remove MCP Tool of 0xshariq github-mcp-server (all revisions up to commit 52e764a7d66eac1726fce02ca7bb5a638571801a) lets an attacker who can influence the tool's 'File' argument inject shell metacharacters that are executed by child_process.exec in src/github.ts. Publicly available exploit code exists (reported via a GitHub issue on the project's own repository), but there is no evidence of confirmed active exploitation in CISA KEV, and the vendor has not responded to the report. The assessed CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) rates confidentiality, integrity and availability impact as high, although the practical exposure depends heavily on how the MCP server is deployed - a network-accessible MCP transport makes the AV:N path realistic, whereas a local stdio deployment limits reach to whatever can feed input into the connected LLM client.

RemediationAI

No vendor-released patch identified at time of analysis: the maintainer was notified through issue 2 (https://github.com/0xshariq/github-mcp-server/issues/2) and has not responded, and the rolling-release model means no fixed version can be named - treat every current revision as vulnerable and track the repository for a fix commit. Until an upstream fix lands, the most direct mitigation is to patch or fork src/github.ts so the Git Remove tool uses child_process.execFile or spawn with an argument array and no shell, which removes the injection primitive entirely; the trade-off is a code change that must be maintained against upstream. Second, strictly allowlist or validate the 'File' path (resolve it, confirm it sits inside the intended repository root, reject shell metacharacters and path traversal) before it reaches the tool - cheap to implement but easy to get wrong, so it should complement rather than replace the execFile change. Third, reduce blast radius and reachability: run the MCP server as an unprivileged, containerized or sandboxed process with a scoped GitHub token, and prefer local stdio transport over network-exposed MCP transports - if a network transport is required, front it with authentication and network ACLs, since PR:L in the assessed vector means the tool interface must already be reachable and usable by the attacker. Note the trade-offs: disabling the Git Remove tool altogether fully removes the risk but breaks agent workflows that depend on it, and sandboxing limits lateral movement but does not stop command execution inside the sandbox. Finally, monitor MCP server logs for unexpected child-process invocations and treat any suspicious git-remove calls as potential compromise, rotating exposed GitHub tokens if injection is suspected.

Affected VersionsENISA

github-mcp-server 52e764a7d66eac1726fce02ca7bb5a638571801a

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is a Model Context Protocol (MCP) server that exposes GitHub operations as tools to LLM clients. Its 'Git Remove' tool builds a shell command string and hands it to Node.js child_process.exec, which runs the string through a system shell (/bin/sh -c on POSIX, cmd.exe on Windows). Because the 'File' argument is concatenated into that string without escaping or validation, shell metacharacters (semicolons, pipes, backticks, $() substitutions) break out of the intended git invocation and execute arbitrary commands with the privileges of the MCP server process - the classic CWE-78 OS command injection class. CPE cpe:2.3:a:0xshariq:github-mcp-server:*:*:*:*:*:*:*:* confirms every published revision is in scope, and the project's rolling-release model means there is no fixed version boundary to pin. MCP servers are a newer, rapidly adopted attack surface: they typically hold repository credentials and are wired into agentic workflows, so command execution here can pivot to any GitHub token, key, or filesystem resource the process can reach.

Know when Mcp gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 2.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 8.8 HIGH

OS command injection yields arbitrary code execution (C/I/A:H); PR:L because the MCP tool interface must be reachable/invokable; AV:N per the remote-execution claim, though local stdio deployment could make it AV:L.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Sep 30, 2026 - 03:22 NVD
MEDIUM LOW
CVSS changed
Sep 30, 2026 - 03:22 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVE Published
Sep 30, 2026 - 02:30 cve.org
MEDIUM 5.3

DescriptionCVE.org

A vulnerability was identified in 0xshariq github-mcp-server up to 52e764a7d66eac1726fce02ca7bb5a638571801a. This issue affects the function child_process.exec of the file src/github.ts of the component Git Remove MCP Tool. Such manipulation of the argument File leads to os command injection. The attack can be executed remotely. The exploit is publicly available and might be used. This product implements a rolling release for ongoing delivery, which means version information for affected or updated releases is unavailable. The project was informed of the problem early through an issue report but has not responded yet.

Threat Intelligence Overview

EPSS Score
1.1%
Top 36% exploitable
Prevalence
Rare
individual-maintained hobby GitHub MCP server, negligible production footprint
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 1.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

31
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy