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.
Published: 2026-04-25
Score: 6.9 Medium
EPSS: 2.1% Low
KEV: No
Impact: Remote Command Execution via Command Injection
Action: Patch ASAP
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Mon, 27 Apr 2026 20:15:00 +0000

Type Values Removed Values Added
First Time appeared Divyanshu-hash
Divyanshu-hash gitpilot-mcp
Vendors & Products Divyanshu-hash
Divyanshu-hash gitpilot-mcp

Mon, 27 Apr 2026 13:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Sat, 25 Apr 2026 13:30:00 +0000

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'}


Subscriptions

Divyanshu-hash Gitpilot-mcp
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-04-27T12:29:29.663Z

Reserved: 2026-04-24T18:56:48.432Z

Link: CVE-2026-6980

cve-icon Vulnrichment

Updated: 2026-04-27T12:29:23.471Z

cve-icon NVD

Status : Deferred

Published: 2026-04-25T14:16:00.120

Modified: 2026-04-29T01:00:01.613

Link: CVE-2026-6980

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-29T01:45:26Z

Weaknesses