Moderate severityNVD Advisory· Published Mar 13, 2026· Updated Mar 13, 2026
Gokapi has Privilege Escalation in File Replace
CVE-2026-30943
Description
Gokapi is a self-hosted file sharing server with automatic expiration and encryption support. Prior to 2.2.4, An insufficient authorization check in the file replace API allows a user with only list visibility permission (UserPermListOtherUploads) to delete another user's file by abusing the deleteNewFile flag, bypassing the requirement for UserPermDeleteOtherUploads. This vulnerability is fixed in 2.2.4.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/forceu/gokapiGo | < 2.2.4 | 2.2.4 |
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/advisories/GHSA-j6jp-78w8-34x6ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-30943ghsaADVISORY
- github.com/Forceu/Gokapi/releases/tag/v2.2.4ghsax_refsource_MISCWEB
- github.com/Forceu/Gokapi/security/advisories/GHSA-j6jp-78w8-34x6ghsax_refsource_CONFIRMWEB
- pkg.go.dev/vuln/GO-2026-4696ghsaWEB
News mentions
0No linked articles in our index yet.