GHSA-j6jp-78w8-34x6

ghsaUSosv

Gokapi vulnerable to Privilege Escalation in File Replace

view advisory published 2026-03-13Licence: CC-BY-4.0

## 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`.

01

describes (1)

Related CVEs.

IDseverity exploitable
CVE-2026-30943USmedium4.1OT elevated—
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 u…
02

references

External citations — patches, advisories, analysis.

scry

Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.

Free scan