CVE-2026-30943: Gokapi has 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 PERMREPLACE (replace own files) and PERMLIST (view other users' uploads) can delete any other user's file without needing PERMDELETE.
Other sources
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.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-30943?
CVE-2026-30943 is classified as a critical vulnerability due to its potential for privilege escalation.
How do I fix CVE-2026-30943?
To fix CVE-2026-30943, upgrade Gokapi to version 2.2.4 or later to address the insufficient authorization check.
Who is affected by CVE-2026-30943?
Any user utilizing Gokapi versions up to 2.2.3 is vulnerable to CVE-2026-30943.
What type of vulnerability is CVE-2026-30943?
CVE-2026-30943 is a privilege escalation vulnerability affecting the file replace API.
What does CVE-2026-30943 allow an attacker to do?
CVE-2026-30943 allows an attacker to delete another user's file by exploiting improper authorization checks.