Skip to main content

gin-vue-admin CVE-2026-48787

| EUVDEUVD-2026-38077 HIGH
OS Command Injection (CWE-78)
2026-06-19 GitHub_M
7.4
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain authenticated admin session
  2. Delivery
    POST /autoCode/addFunc with malicious Go in identifier fields
  3. Exploit
    Templated source written to disk
  4. Execution
    POST /autoCode/mcpStart rebuilds MCP binary
  5. Persist
    Standalone MCP service restarts executing attacker code
  6. Impact
    RCE 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

gin-vue-admin = 2.9.1

Affected Packages

euvd gin_vue_admin no fix

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

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
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
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.5%
Top 63% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2022-39305 CRITICAL POC
9.8 Oct 24

Gin-vue-admin is a backstage management system based on vue and gin, which separates the front and rear of the full stac

CVE-2022-32176 CRITICAL POC
9.0 Oct 17

In "Gin-Vue-Admin", versions v2.5.1 through v2.5.3b are vulnerable to Unrestricted File Upload that leads to execution o

CVE-2022-32177 CRITICAL POC
9.0 Oct 14

In "Gin-Vue-Admin", versions v2.5.1 through v2.5.3beta are vulnerable to Unrestricted File Upload that leads to executio

CVE-2022-24844 HIGH POC
8.8 Apr 13

Gin-vue-admin is a backstage management system based on vue and gin, which separates the front and rear of the full stac

CVE-2025-66410 HIGH POC
8.7 Dec 01

Arbitrary file deletion in Gin-vue-admin 2.8.6 and earlier lets an authenticated user with a valid session token delete

CVE-2022-39345 HIGH POC
7.5 Oct 25

Gin-vue-admin is a backstage management system based on vue and gin, which separates the front and rear of the full stac

CVE-2026-22786 HIGH POC
7.2 Jan 12

Gin-vue-admin versions 2.8.7 and earlier contain a path traversal vulnerability in the breakpoint resume upload API that

CVE-2021-44219 CRITICAL
9.8 Nov 24

Gin-Vue-Admin before 2.4.6 mishandles a SQL database. Rated critical severity (CVSS 9.8), this vulnerability is remotely

CVE-2022-24843 HIGH
7.5 Apr 13

Gin-vue-admin is a backstage management system based on vue and gin, which separates the front and rear of the full stac

CVE-2026-114492 HIGH
7.0 Oct 21

Path traversal in gin-vue-admin through 2.9.2 allows an authenticated administrator to recursively delete arbitrary dire

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