{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-31457","id":"CVE-2024-31457","title":"gin-vue-admin background arbitrary code coverage vulnerability","description":"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` paramet","descriptionLong":"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.","published":"2024-04-09T17:39:52.347Z","updated":"2026-10-28T02:31:08.638684777Z","reserved":"2024-04-03T17:55:32.647Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["flipped-aurora gin-vue-admin"],"affectedProducts":[{"vendor":"flipped-aurora","product":"gin-vue-admin","defaultStatus":null,"versions":[{"version":"< 0.0.0-20240409100909-b1b7427c6ea6","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/flipped-aurora/gin-vue-admin/server","purl":"pkg:golang/github.com/flipped-aurora/gin-vue-admin/server","ranges":["<0.0.0-20240409100909-b1b7427c6ea6"],"fixed":["0.0.0-20240409100909-b1b7427c6ea6"],"advisory":"GHSA-gv3w-m57p-3wc4"}],"cwes":["CWE-22"],"aliases":["GHSA-gv3w-m57p-3wc4","GO-2024-2702"],"references":[{"url":"https://github.com/flipped-aurora/gin-vue-admin/security/advisories/GHSA-gv3w-m57p-3wc4","tags":["x_refsource_CONFIRM","x_transferred","advisory","web"]},{"url":"https://github.com/flipped-aurora/gin-vue-admin/commit/b1b7427c6ea6c7a027fa188c6be557f3795e732b","tags":["x_refsource_MISC","x_transferred","fix","web"]},{"url":"https://pkg.go.dev/github.com/flipped-aurora/gin-vue-admin/server?tab=versions","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31457.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31457","tags":["advisory"]},{"url":"https://github.com/flipped-aurora/gin-vue-admin","tags":["package"]},{"url":"https://github.com/flipped-aurora/gin-vue-admin/blob/746af378990ebf3367f8bb3d4e9684936df152e7/server/api/v1/system/sys_auto_code.go:239","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00904,"epssPercentile":0.60539,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-31457","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31457","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-31457","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-gv3w-m57p-3wc4","ok":true,"note":"GHSA-gv3w-m57p-3wc4"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-31457","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}