mcp-cve-project

CVE-2026-48787 | gin-vue-admin MCP management code-generation command injection | Severity: see NVD

CVE Information

Field Value
CVE / NVD CVE-2026-48787
Date (index) 2026-06-19
Affected product (index) gin-vue-admin MCP management code-generation command injection
GHSA ID GHSA-22CV-9JV2-6M62
OWASP MCP Top 10 (2025) MCP05 — Command Injection & Execution
Published / disclosed 2026-06-19
Ecosystem Application / upstream project
Component gin-vue-admin MCP management code-generation command injection
EPSS score 0.004700000 (FIRST EPSS, 2026-06-30)
CVSS score Secondary HIGH — 7.4 CVSS v4.0
CWE CWE-78
Affected versions gin-vue-admin = 2.9.1
Fixed versions No fixed version listed in NVD/GitHub advisory
Fix status Unfixed
Exploit status Public CVE record; do not mirror weaponized payloads
Notes Added during the 2026-06-24 missing-CVE review from NVD MCP keyword results. Re-check NVD before using this entry for compliance reporting.

CVE Breakdown


What is the vulnerability?

gin-vue-admin is an AI-assisted basic development platform. In version 2.9.1, an authenticated attacker with access to the code-generation feature and MCP management interface can exploit this vulnerability by injecting attacker-controlled Go source code through POST /autoCode/addFunc, and then invoking POST /autoCode/mcpStart to trigger a rebuild and restart of the standalone MCP service. This allows arbitrary operating system commands to be executed on the server with the privileges of the application process. Successful exploitation may lead to remote code execution (RCE), modification of backend source code or runtime logic, deployment of persistent backdoors, access to or manipulation of application data and configuration, and further impact on local resources running under the same service account or privilege context. The risk is highest in deployments that retain the source tree, allow writes to source files, and support local build or startup of standalone MCP components. In environments using binary-only releases, read-only filesystems, or with local build capabilities removed, the exploitability of the full attack chain is significantly reduced. However, once the online code-generation capability and MCP-hosted startup workflow are enabled, the overall security impact may reach high to critical severity. As of time of publication, it is unknown if a patched version is available. As a workaround, enforce strict allowlist validation on path- and identifier-related fields such as humpPackageName, packageName, FuncName, and Router, and only permit safe identifier formats.

Attack prerequisites / exposure

Exposure depends on how the affected MCP server, client, gateway, plugin, or adjacent AI tool is deployed. Prioritize systems reachable by untrusted users or networks, systems that accept attacker-controlled tool arguments, and systems with access to credentials, browsers, cloud APIs, Kubernetes clusters, databases, email, or desktop automation.

CVE is because of what bug?

Primary mapped weakness: MCP05 — Command Injection & Execution. Confirm the exact CWE and affected code path in the NVD record and upstream advisory before adding exploit-specific detail.

MCP-specific impact / why it matters

MCP components bridge model output to privileged tools. Vulnerabilities in authentication, scope enforcement, command execution, SSRF validation, secret handling, or tool registration can turn prompt/tool input into host compromise, credential disclosure, unauthorized cloud/database access, or persistent malicious tool execution.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory. Do not paste weaponized payloads.

Fix / Remediation

Upgrade to the vendor-fixed version where available. If no fixed version is listed, restrict the affected component to trusted users and trusted networks, disable risky tools, validate tool arguments, and run the service with least-privilege credentials until upstream remediation is confirmed.

Upstream fix (open source)

Workarounds / mitigations

Exploit / PoC

If a public PoC exists, prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.

Detection / verification

Patch

Track NVD references for CVE-2026-48787 and apply the upstream patched release or commit recommended by the vendor/CNA.