CVE-2026-48787
Received Received - Intake
Authenticated Command Injection in gin-vue-admin via MCP Code Generation

Publication date: 2026-06-19

Last updated on: 2026-06-19

Assigner: GitHub, Inc.

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-19
Last Modified
2026-06-19
Generated
2026-06-21
AI Q&A
2026-06-19
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
flipped-aurora gin-vue-admin to 2.9.1 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2026-48787 is a Remote Code Execution (RCE) vulnerability in the gin-vue-admin framework, affecting versions up to 2.9.1. An authenticated attacker who has access to the code-generation feature and MCP management interface can exploit this vulnerability by injecting malicious Go source code through the POST /autoCode/addFunc endpoint.

After injecting the code, the attacker can trigger a rebuild and restart of the standalone MCP service using the POST /autoCode/mcpStart endpoint. This process causes the malicious code to be executed with the privileges of the application process, allowing arbitrary operating system commands to run on the server.

This vulnerability arises because the system allows writing and executing attacker-controlled source code during the MCP service startup, which can lead to full system compromise.

Impact Analysis

Successful exploitation of this vulnerability can lead to remote code execution on the server with the application's privileges.

  • Modification of backend source code or runtime logic.
  • Deployment of persistent backdoors.
  • Access to or manipulation of application data and configuration.
  • 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 with binary-only releases or read-only filesystems, the exploitability is significantly reduced.

Detection Guidance

Detection of this vulnerability involves monitoring for suspicious POST requests to the endpoints /autoCode/addFunc and /autoCode/mcpStart, which are used in the attack chain.

Specifically, look for POST requests that inject Go source code or trigger rebuilds and restarts of the MCP service.

Commands to detect such activity could include inspecting web server logs or using network monitoring tools to filter for these POST requests.

  • Use grep or similar tools on server logs to find POST requests to /autoCode/addFunc and /autoCode/mcpStart, for example: grep 'POST /autoCode/addFunc' /var/log/nginx/access.log
  • Monitor running processes or service restarts related to the MCP service that may indicate triggered rebuilds.
Mitigation Strategies

Immediate mitigation involves enforcing strict input validation on all path- and identifier-related fields such as humpPackageName, packageName, FuncName, and Router to prevent injection of malicious code.

Additionally, consider disabling or restricting access to the code-generation feature and MCP management interface to trusted users only.

If possible, deploy the application in an environment with read-only filesystems or binary-only releases to reduce exploitability.

Monitor for any unusual activity related to the MCP service and consider temporarily disabling the MCP rebuild and restart functionality until a patch is available.

Compliance Impact

This vulnerability allows an authenticated attacker to execute arbitrary operating system commands on the server, potentially leading to unauthorized access, data manipulation, and deployment of persistent backdoors.

Such unauthorized access and potential data manipulation could result in violations of data protection regulations like GDPR and HIPAA, which require strict controls over data confidentiality, integrity, and system security.

Therefore, exploitation of this vulnerability may compromise compliance with these standards by exposing sensitive data or allowing unauthorized system changes.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-48787. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart