Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain authenticated admin session
-
DeliveryPOST /autoCode/addFunc with malicious Go in identifier fields
-
ExploitTemplated source written to disk
-
ExecutionPOST /autoCode/mcpStart rebuilds MCP binary
-
PersistStandalone MCP service restarts executing attacker code
-
ImpactRCE as service account, persist via regenerated templates
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires (1) valid authenticated access to the gin-vue-admin admin interface with permission to use the online code-generation feature and the MCP management interface (consistent with CVSS PR:L), (2) the deployment must retain a writable Go source tree so /autoCode/addFunc can persist injected code, and (3) the host must have a working Go build toolchain so /autoCode/mcpStart can rebuild and restart the standalone MCP service. Exploitation is materially limited or broken in binary-only releases, read-only-filesystem deployments, or installations where local build/startup of MCP components has been removed; no user interaction by another operator is needed (UI:N), and the impact is confined to the vulnerable system (SC:N/SI:N/SA:N). |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H, base 7.4, E:P) and CWE-78 align: network-reachable, low-complexity, low-privilege RCE with full CIA impact on the vulnerable system, no scope change to other systems. The vendor explicitly scopes real-world exploitability to deployments that keep the source tree writable and allow local Go builds - binary-only, read-only-filesystem, or build-disabled installs sharply reduce the chain, which is a meaningful caveat the raw score does not convey. The CVE is not on CISA KEV and no EPSS score, public PoC, or independent exploit telemetry was provided, so prioritization should weight the PR:L precondition: any tenant with code-gen + MCP rights is effectively an admin-equivalent, making this a high priority for any internet- or shared-tenant-exposed instance but a lower priority for hardened single-operator installs. Note that the input vector is CVSS 4.0 only - no 3.1 vector or EPSS was supplied, so cross-framework comparison is inferred rather than confirmed. |
| Exploit ScenarioDerived | An attacker who has phished or otherwise obtained credentials for a gin-vue-admin operator with code-generation rights logs into the admin UI, then issues POST /autoCode/addFunc with malicious Go embedded in a field such as FuncName or packageName so that the generated source contains an os/exec call or backdoor handler. They then call POST /autoCode/mcpStart, which compiles the poisoned source and restarts the standalone MCP service, executing the attacker's code under the application's service account; from there they pivot to read database credentials, plant a persistent backdoor in regenerated templates, or attack co-located services. No public exploit has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 19, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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:*).
Know when Gin Vue Admin gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
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.
Executive ViewAI
gin-vue-admin 2.9.1 contains a remote code execution vulnerability in administrative code-generation features; no public exploit identified at time of analysis. Authenticated users with access to these features could execute arbitrary commands on the application server, creating insider threat and credential-compromise risks for organizations deploying this admin framework. Leadership should immediately restrict access to affected endpoints and monitor for vendor patches.
No vendor-released patch identified at time of analysis. Interim mitigations per GHSA-22cv-9jv2-6m62: (1) Implement strict allowlist-based input validation on POST /autoCode/addFunc and POST /autoCode/mcpStart endpoints; (2) Enforce principle-of-least-privilege access to code-generation and MCP management features; (3) Enable comprehensive audit logging for code-generation activity; (4) Disable feature endpoints if operationally unnecessary; (5) Implement network segmentation to contain impact of compromised administrative accounts; (6) Monitor authentication and code-generation logs for suspicious patterns.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Gin Vue Admin
View allGin-vue-admin is a backstage management system based on vue and gin, which separates the front and rear of the full stac
In "Gin-Vue-Admin", versions v2.5.1 through v2.5.3b are vulnerable to Unrestricted File Upload that leads to execution o
In "Gin-Vue-Admin", versions v2.5.1 through v2.5.3beta are vulnerable to Unrestricted File Upload that leads to executio
Gin-vue-admin is a backstage management system based on vue and gin, which separates the front and rear of the full stac
Arbitrary file deletion in Gin-vue-admin 2.8.6 and earlier lets an authenticated user with a valid session token delete
Gin-vue-admin is a backstage management system based on vue and gin, which separates the front and rear of the full stac
Gin-vue-admin versions 2.8.7 and earlier contain a path traversal vulnerability in the breakpoint resume upload API that
Gin-Vue-Admin before 2.4.6 mishandles a SQL database. Rated critical severity (CVSS 9.8), this vulnerability is remotely
Gin-vue-admin is a backstage management system based on vue and gin, which separates the front and rear of the full stac
Path traversal in gin-vue-admin through 2.9.2 allows an authenticated administrator to recursively delete arbitrary dire
EUVD-2026-38077
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB