mcp-cve-project

CVE-2026-5007 | mcp-docs-rag (OS command injection) | Medium | 5.3

CVE Information

Field Value
CVE / NVD CVE-2026-5007
Date (index) 2026-03-28
Affected product (index) mcp-docs-rag (OS command injection)
GHSA ID GHSA-56ph-gvwc-wqxr
OWASP MCP Top 10 (2025) MCP02 — Privilege Escalation via Scope Creep
Published / disclosed 2026-03-28
Ecosystem Application / upstream project
Component mcp-docs-rag (OS command injection)
EPSS score 0.006470000 (FIRST EPSS, 2026-06-30)
CVSS score 5.3 MEDIUM CVSS v3.1 (NVD)
CWE CWE-77 / CWE-78
Affected versions <= 0.5.0
Fixed versions no vendor patch confirmed
Fix status Patched
Exploit status Public PoC reported

CVE Breakdown


What is the vulnerability?

Local attackers can turn document ingestion helpers into host command execution.

Attack prerequisites / exposure

The attacker needs control over path, repository, or file arguments reaching the affected tool call. In MCP environments this often becomes reachable through prompt-influenced tool arguments, shared configs, or directly exposed tool endpoints.

CVE is because of what bug?

cloneRepository OS command injection

MCP-specific impact / why it matters

Local attackers can turn document ingestion helpers into host command execution. The impact can extend from a single malformed input to host-level command execution.

Where was the bug? (source + snippet)

Exact file/function details are not yet captured in the repository source set. Use the advisory and upstream fix link above as the starting point for source-level pinpointing.

Add the vulnerable file/function name and a minimal before/after snippet here once the patch commit is linked.

Fix / Remediation

The patch adds canonical path validation, symlink-aware containment checks, or explicit repository boundary enforcement before executing the affected tool action.

Upstream fix (open source)

Workarounds / mitigations