Gin-vue-admin has arbitrary file upload vulnerability caused by path traversal
Description
Gin-vue-admin is a backstage management system based on vue and gin. Gin-vue-admin <= v2.8.7 has a path traversal vulnerability in the breakpoint resume upload functionality. Attacker can upload any files on any directory. In the breakpoint_continue.go file, the MakeFile function accepts a fileName parameter through the /fileUploadAndDownload/breakpointContinueFinish API endpoint and directly concatenates it with the base directory path (./fileDir/) using os.OpenFile() without any validation for directory traversal sequences (e.g., ../). An attacker with file upload privileges could exploit this vulnerability.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/flipped-aurora/gin-vue-adminGo | <= 2.8.7 | — |
Affected products
3- Range: V2.4.4, V2.5.0b, v0.9.0, …
- ghsa-coords2 versionspkg:golang/github.com/flipped-aurora/gin-vue-adminpkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Leap%2015.6
<= 2.8.7+ 1 more
- (no CPE)range: <= 2.8.7
- (no CPE)range: < 0.0.20260123T022811-150000.1.140.1
Patches
Vulnerability mechanics
References
4- github.com/advisories/GHSA-3558-j79f-vvm6ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-22786ghsaADVISORY
- github.com/flipped-aurora/gin-vue-admin/commit/2242f5d6e133e96d1b359ac019bf54fa0e975dd5ghsax_refsource_MISCWEB
- github.com/flipped-aurora/gin-vue-admin/security/advisories/GHSA-3558-j79f-vvm6ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.