Skip to main content

gin-vue-admin EUVDEUVD-2026-38077

| CVE-2026-48787 HIGH
OS Command Injection (CWE-78)
2026-06-19 GitHub_M
7.4
CVSS 4.0 · Vendor: GitHub_M
Share

Severity by source

Vendor (GitHub_M) PRIMARY
7.4 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
7.5 HIGH

Network-reachable admin endpoints (AV:N); authenticated code-gen role required (PR:L); AC:H reflects the need for a writable source tree and local Go build toolchain; full CIA impact on the host, scope unchanged.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

1
Analysis Generated
Jun 19, 2026 - 20:18 vuln.today

DescriptionCVE.org

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.

AnalysisAI

Authenticated remote code execution in gin-vue-admin 2.9.1 lets attackers with access to the code-generation and MCP management features inject arbitrary Go source via POST /autoCode/addFunc and trigger a rebuild/restart through POST /autoCode/mcpStart, yielding OS command execution as the application service account. No public exploit identified at time of analysis, and as of publication a patched version is not confirmed; the upstream GHSA-22cv-9jv2-6m62 advisory only documents allowlist-based workarounds.

Technical ContextAI

gin-vue-admin (flipped-aurora) is a Go (Gin) plus Vue full-stack rapid-development platform whose online code-generation feature writes templated Go files into the live source tree, and whose MCP (Model Context Protocol) integration lets administrators build and (re)start a standalone MCP service from the running application. The flaw is a classic CWE-78 OS Command Injection / unsafe code-generation pipeline: identifier-style fields such as humpPackageName, packageName, FuncName, and Router are interpolated into generated Go source without strict allowlist validation, so attacker-controlled tokens become attacker-controlled code, which the /autoCode/mcpStart endpoint then compiles and executes via the local Go toolchain - effectively turning a templating sink into a build-and-run primitive on the host (cpe:2.3:a:flipped-aurora:gin-vue-admin:*).

RemediationAI

No vendor-released patch identified at time of analysis, so apply the vendor-recommended workaround from GHSA-22cv-9jv2-6m62 (https://github.com/flipped-aurora/gin-vue-admin/security/advisories/GHSA-22cv-9jv2-6m62): enforce a strict allowlist on humpPackageName, packageName, FuncName, and Router so only safe Go identifier characters (for example ^[A-Za-z][A-Za-z0-9_]*$) are accepted before they reach the code-generation templates. As compensating controls until a fixed release ships, restrict the autoCode and MCP management routes to a minimal set of trusted admin accounts behind network ACLs or a VPN (trade-off: blocks legitimate remote tenants), run the application from a binary-only deployment on a read-only filesystem with the Go toolchain removed so /autoCode/mcpStart cannot rebuild (trade-off: disables the online code-gen workflow), and run the service under a dedicated low-privilege account with no write access to the source tree or systemd units (trade-off: complicates upgrades). Track the GHSA advisory for the eventual fixed version and upgrade as soon as it is published.

Share

EUVD-2026-38077 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy