{"id":"CVE-2024-31457","published":"2024-04-09T17:39:52Z","modified":"2024-08-02T01:52:57Z","title":"gin-vue-admin background arbitrary code coverage vulnerability","vendor":"flipped-aurora","product":"gin-vue-admin","tier":"tail","description":{"text":"gin-vue-admin is a backstage management system based on vue and gin, which separates the front and rear of the full stack. gin-vue-admin pseudoversion 0.0.0-20240407133540-7bc7c3051067, corresponding to version 2.6.1, has a code injection vulnerability in the backend. In the Plugin System -> Plugin Template feature, an attacker can perform directory traversal by manipulating the `plugName` parameter. They can create specific folders such as `api`, `config`, `global`, `model`, `router`, `service`, and `main.go` function within the specified traversal directory. Moreover, the Go files within these folders can have arbitrary code inserted based on a specific PoC parameter. The main reason for the existence of this vulnerability is the controllability of the PlugName field within the struct. Pseudoversion 0.0.0-20240409100909-b1b7427c6ea6, corresponding to commit b1b7427c6ea6c7a027fa188c6be557f3795e732b, contains a patch for the issue. As a workaround, one may manually use a filtering method available in the GitHub Security Advisory to rectify the directory traversal problem.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00904,"percentile":0.60661,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/flipped-aurora/gin-vue-admin/security/advisories/GHSA-gv3w-m57p-3wc4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/flipped-aurora/gin-vue-admin/commit/b1b7427c6ea6c7a027fa188c6be557f3795e732b","tags":["x_refsource_MISC"]},{"url":"https://pkg.go.dev/github.com/flipped-aurora/gin-vue-admin/server?tab=versions","tags":["x_refsource_MISC"]}],"priority":{"score":17.5,"factors":[{"name":"EPSS percentile","points":12.13},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"flipped-aurora","affectedVersions":[{"vendor":"flipped-aurora","product":"gin-vue-admin","versions":["< 0.0.0-20240409100909-b1b7427c6ea6"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-26T20:58:45.895171Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/flipped-aurora/gin-vue-admin/server","vulnerableRanges":["<0.0.0-20240409100909-b1b7427c6ea6"],"patched":["0.0.0-20240409100909-b1b7427c6ea6"],"from":["GHSA-gv3w-m57p-3wc4","GO-2024-2702"],"provenance":"source"}],"summary":{"text":"The gin-vue-admin backend (vendor flipped-aurora) has a path traversal flaw in the Plugin System's Plugin Template feature, where the attacker-controllable plugName parameter lets requests escape the intended directory. An attacker with high privileges on the network can use this to create api, config, global, model, router, service and main.go files in the traversed location and insert arbitrary code into Go files based on a PoC parameter, with the attack complexity rated high.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:40:34Z"},"euvd":{"id":"EUVD-2024-1210","exploited":false,"provenance":"source"}}