CVE-2026-30943
MEDIUM 4.1CVSS 3.1Gokapi vulnerable to Privilege Escalation in File Replace
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.
- Published
- 13 Mar 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-863
- Also known as
- GHSA-j6jp-78w8-34x6GO-2026-4696
- Sources
- NVDJSONOSV GHSA-j6jp-78w8-34x6JSONOSV GO-2026-4696JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | forceu | gokapicpe:2.3:a:forceu:gokapi:*:*:*:*:*:*:*:* |
< 2.2.4 | 2.2.4 |
| OSV | Go | github.com/forceu/gokapi | < 2.2.4 | 2.2.4 |
| OSV | Go | github.com/forceu/gokapi | all versions |
References
- https://github.com/Forceu/Gokapi/releases/tag/v2.2.4 · Product, Release Notes, WEB
- https://github.com/Forceu/Gokapi/security/advisories/GHSA-j6jp-78w8-34x6 · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-30943 · ADVISORY
- https://github.com/Forceu/Gokapi · PACKAGE
- https://pkg.go.dev/vuln/GO-2026-4696 · WEB
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 13 Mar 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Mar 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 13 Mar 2026)