CVE-2024-31457 json
gin-vue-admin background arbitrary code coverage vulnerability
published 2024-04-09 2 y ago modified 2026-09-10 1 mo ago also EUVD-2024-1210 , GHSA-gv3w-m57p-3wc4 , GO-2024-2702
- cvss
- 7.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 60%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/flipped-aurora/gin-vue-admin/server 0.0.0-20240409100909-b1b7427c6ea6
- flipped-aurora gin-vue-admin 0.0.0-20240409100909-b1b7427c6ea6
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.90% chance of exploitation in the next 30 days, higher than 60% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H |
| GitHub | 3.1 | 7.7 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/flipped-aurora/gin-vue-admin/server | <0.0.0-20240409100909-b1b7427c6ea6 |
0.0.0-20240409100909-b1b7427c6ea6 |
Affected products
- flipped-aurora gin-vue-admin
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/flipped-aurora/gin-vue-admin/commit/b1b7427c6ea6c7a027fa188c6be557f3795e732b
web, patch
-
github.com
/flipped-aurora/gin-vue-admin/security/advisories/GHSA-gv3w-m57p-3wc4
web, advisory
-
pkg.go.dev
/github.com/flipped-aurora/gin-vue-admin/server?tab=versions
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-31457
advisory
-
github.com
/flipped-aurora/gin-vue-admin
package
-
github.com
/flipped-aurora/gin-vue-admin/blob/746af378990ebf3367f8bb3d4e9684936df152e7/server/api/v1/system/sys_auto_code
web
Sources
- CVE List CVE-2024-31457
- GitHub Advisory GHSA-gv3w-m57p-3wc4
- NVD CVE-2024-31457
- OSV GO-2024-2702
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.