{"schemaVersion":3,"id":"CVE-2024-31457","aliases":["GHSA-gv3w-m57p-3wc4","GO-2024-2702"],"status":"published","duplicateOf":null,"title":null,"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` 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.","dates":{"published":"2024-04-09T17:39:52.347Z","modified":"2024-08-02T01:52:57.064Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.7,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.7,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":7.7,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H","exploitability":3.3,"impact":9.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.7,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00904,"percentile":0.59179,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00904},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00904,"percentile":0.59179}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00904,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00904,"percentile":0.59179}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"flipped-aurora","product":"gin-vue-admin","name":"gin-vue-admin","label":"gin-vue-admin","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 0.0.0-20240409100909-b1b7427c6ea6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.0-20240409100909-b1b7427c6ea6","eol":null,"hubHref":"/vendor/flipped-aurora/gin-vue-admin"},{"vendor":"github.com/flipped-aurora/gin-vue-admin","product":"server","name":"github.com/flipped-aurora/gin-vue-admin/server","label":"server","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/flipped-aurora/gin-vue-admin/server","purlType":"golang","versions":[{"text":"< 0.0.0-20240409100909-b1b7427c6ea6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.0.0-20240409100909-b1b7427c6ea6","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/flipped-aurora/gin-vue-admin/security/advisories/GHSA-gv3w-m57p-3wc4","label":"github.com/flipped-aurora/gin-vue-admin/security/advisories/GHSA-gv3w-m57p-3wc4","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory"]},{"url":"https://github.com/flipped-aurora/gin-vue-admin/commit/b1b7427c6ea6c7a027fa188c6be557f3795e732b","label":"github.com/flipped-aurora/gin-vue-admin/commit/b1b7427c6ea6c7a027fa188c6be557f3795e732b","hostname":"github.com","tags":["X Refsource MISC","WEB","FIX"]},{"url":"https://pkg.go.dev/github.com/flipped-aurora/gin-vue-admin/server?tab=versions","label":"pkg.go.dev/github.com/flipped-aurora/gin-vue-admin/server?tab=versions","hostname":"pkg.go.dev","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31457","label":"nvd.nist.gov/vuln/detail/CVE-2024-31457","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/flipped-aurora/gin-vue-admin","label":"github.com/flipped-aurora/gin-vue-admin","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/flipped-aurora/gin-vue-admin/blob/746af378990ebf3367f8bb3d4e9684936df152e7/server/api/v1/system/sys_auto_code.go:239","label":"github.com/flipped-aurora/…","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-04-09T17:39:52.347Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-02T01:52:57.064Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T06:57:28.729Z","stale":false,"partial":false}}