CVE-2026-6980

Divyanshu-hash GitPilot-MCP main.py repo_path command injection

Published Apr 25, 2026 CVSS 4.0 · 6.9 Medium EPSS 2.8% KEV · Not listed
Description
A vulnerability has been found in Divyanshu-hash GitPilot-MCP up to 9ed9f153ba4158a2ad230ee4871b25130da29ffd. This impacts the function repo_path of the file main.py. Such manipulation of the argument command leads to command injection. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. This product does not use versioning. This is why information about affected and unaffected releases are unavailable. The vendor was contacted early about this disclosure but did not respond in any way.

Analysis

AI-generated

Technical impact

The vulnerability resides in the repo_path handler of the main.py module of Divyanshu‑hash GitPilot‑MCP. The function takes a user‑supplied path and passes it directly to the operating system shell without any sanitization, a classic command injection flaw identified by CWE‑74 and CWE‑77. An attacker who can influence the command argument can cause the service to execute arbitrary shell commands on the host, potentially compromising confidentiality, integrity, and availability.

Affected Systems

All releases of Divyanshu‑hash GitPilot‑MCP up to the commit 9ed9f153ba4158a2ad230ee4871b25130da29ffd are affected. The product does not use formal versioning, so finer resolution of affected or unaffected builds is unavailable.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity, while the EPSS score of 1% suggests a low but non‑zero likelihood of exploitation. The vulnerability is not listed in CISA KEV, but the public disclosure and the ability to launch attacks remotely via the exposed repo_path endpoint raise considerable concern. An attacker with network reach to the service could trigger the injection; authentication requirements are not specified in the description, so the exact scope remains uncertain.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • If a patched revision has been released by the vendor, upgrade GitPilot‑MCP to a commit newer than 9ed9f153ba4158a2ad230ee4871b25130da29ffd.
  • Add input validation or sanitization in the repo_path handler: whitelist acceptable characters or enforce path resolution before passing to the shell, or replace the shell call with a safe API such as subprocess.run with shell=False.
  • If the endpoint must remain exposed, limit access by implementing network‑level controls (e.g., firewall rules, VPN, or authentication) and monitor for suspicious command execution attempts.
  • Consider applying a temporary code patch that removes the repo_path functionality or redirects the endpoint to a safe stub until a permanent fix is available.

Generated by OpenCVE AI on April 29, 2026 at 01:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Divyanshu-hash
Divyanshu-hash gitpilot-mcp
Vendors & Products Divyanshu-hash
Divyanshu-hash gitpilot-mcp
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A vulnerability has been found in Divyanshu-hash GitPilot-MCP up to 9ed9f153ba4158a2ad230ee4871b25130da29ffd. This impacts the function repo_path of the file main.py. Such manipulation of the argument command leads to command injection. The attack can be launched remotely. The exploit has been disclosed to the public and may be used. This product does not use versioning. This is why information about affected and unaffected releases are unavailable. The vendor was contacted early about this disclosure but did not respond in any way.
Title Divyanshu-hash GitPilot-MCP main.py repo_path command injection
Weaknesses CWE-74
CWE-77
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 7.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Apr 27, 2026, 12:29 PM
Reserved
Apr 24, 2026, 6:56 PM
Status
Deferred
Published
Apr 25, 2026, 2:16 PM
Modified
Oct 26, 2026, 9:10 PM