All reports
Medium

Gokapi vulnerable to Privilege Escalation in File Replace

Affected versions

Version ranges need review.

Affected versions
<= 2.2.3
Fixed version
2.2.4
Affected versions
*
Fixed version
Not reported

Exploitation

CVE-2026-30943

Probability of exploitation in the next 30 days: 0.19%

FIRST EPSS · 2026-11-23

Description

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.

Links

Credits

  • Sijisu
  • aisafe-bot
  • Forceu