Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/flipped-aurora/gin-vue-admin/server
  4. ›
  5. CVE-2024-31457

CVE-2024-31457: gin-vue-admin background arbitrary code coverage vulnerability

April 9, 2024

“gin-vue-admin<=v2.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.”

References

  • github.com/advisories/GHSA-gv3w-m57p-3wc4
  • github.com/flipped-aurora/gin-vue-admin
  • github.com/flipped-aurora/gin-vue-admin/blob/746af378990ebf3367f8bb3d4e9684936df152e7/server/api/v1/system/sys_auto_code.go:239
  • github.com/flipped-aurora/gin-vue-admin/commit/b1b7427c6ea6c7a027fa188c6be557f3795e732b
  • github.com/flipped-aurora/gin-vue-admin/security/advisories/GHSA-gv3w-m57p-3wc4
  • nvd.nist.gov/vuln/detail/CVE-2024-31457
  • pkg.go.dev/github.com/flipped-aurora/gin-vue-admin/server?tab=versions

Code Behaviors & Features

Detect and mitigate CVE-2024-31457 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20240409100909-b1b7427c6ea6

Fixed versions

  • 0.0.0-20240409100909-b1b7427c6ea6

Solution

Upgrade to version 0.0.0-20240409100909-b1b7427c6ea6 or above.

Impact 7.7 HIGH

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/flipped-aurora/gin-vue-admin/server/CVE-2024-31457.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:27 +0000.