CVE-2026-48787: gin-vue-admin vulnerable to RCE

Published Jun 19, 2026
·
Updated

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.

Affected Software

1 affected component
Gin-vue-admin Gin-vue-admin=2.9.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Enforce strict allowlist validation on path- and identifier-related fields such as humpPackageName, packageName, FuncName, and Router; only permit safe identifier formats.

    gin-vue-admin (code-generation input validation) humpPackageName, packageName, FuncName, Router = only permit safe identifier formats via a strict allowlist
  2. Compensating control

    Deploy binary-only releases (do not include the source tree) to reduce exploitability, as environments using binary-only releases are significantly less vulnerable.

  3. Compensating control

    Use read-only filesystems for the source tree and relevant deployment directories so attackers cannot write or modify source files (read-only filesystems reduce exploitability).

  4. Compensating control

    Remove or disable local build capabilities and prevent MCP-hosted startup of standalone MCP components (do not allow local build/startup of standalone MCP components), and do not enable the online code-generation capability and MCP-hosted startup workflow until a patched version is available.

Event History

Jun 19, 2026
CVE Published
via MITRE·07:46 PM
Data Sourced
via MITRE·07:46 PM
DescriptionWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-48787?

The severity of CVE-2026-48787 is rated high with a CVSS score of 7.4.

2

What type of vulnerability is CVE-2026-48787?

CVE-2026-48787 is an OS Command Injection vulnerability affecting gin-vue-admin.

3

How do I fix CVE-2026-48787?

To fix CVE-2026-48787, update gin-vue-admin to the latest version that addresses this vulnerability.

4

Who can exploit CVE-2026-48787?

Authenticated attackers with access to the code-generation feature and MCP management interface can exploit CVE-2026-48787.

5

What software is affected by CVE-2026-48787?

The affected software is gin-vue-admin, specifically version 2.9.1.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203