github.com/forceu/gokapi
Affected
- introduced
0, fixed2.2.4(semver)
Fixed versions
2.2.4
Fix
- Fixed version
2.2.4go get github.com/forceu/[email protected]
Advisory
Also known as: CVE-2026-30943, GO-2026-4696
Gokapi vulnerable to Privilege Escalation in File Replace
Summary
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.
Impact
Any authenticated user with PERM_REPLACE (replace own files) and PERM_LIST (view other users' uploads) can delete any other user's file without needing PERM_DELETE.
Medium Basis: The source's own band: MODERATE
0, fixed 2.2.4 (semver)2.2.4
2.2.4go get github.com/forceu/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0