CVE-2026-30943
Received Received - Intake
Authorization Bypass in Gokapi File Replace API Allows Deletion

Publication date: 2026-03-13

Last updated on: 2026-03-17

Assigner: GitHub, Inc.

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-13
Last Modified
2026-03-17
Generated
2026-05-07
AI Q&A
2026-03-13
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
forceu gokapi to 2.2.4 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-863 The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

[{'type': 'paragraph', 'content': 'CVE-2026-30943 is a privilege escalation vulnerability in the file replace API of the Gokapi file sharing server versions up to 2.2.3. It occurs because of an insufficient authorization check that allows a user with only list visibility permission (UserPermListOtherUploads) and replace permission for their own files to delete files owned by other users by exploiting the deleteNewFile flag. This bypasses the intended requirement for explicit delete permissions (UserPermDeleteOtherUploads).'}, {'type': 'paragraph', 'content': "The vulnerability enables any authenticated user with these limited permissions to delete any other user's file without needing the proper delete rights, impacting data integrity but not confidentiality or availability."}] [1]


How can this vulnerability impact me? :

This vulnerability can impact you by allowing an authenticated user with limited permissions to delete files owned by other users without proper authorization. This compromises the integrity of stored data, as unauthorized deletions can occur.

Although it does not affect confidentiality or availability, the loss or unauthorized removal of files can disrupt workflows, cause data loss, and undermine trust in the file sharing system.


How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

I don't know


What immediate steps should I take to mitigate this vulnerability?

[{'type': 'paragraph', 'content': 'To mitigate this vulnerability, you should update Gokapi to version 2.2.4 or later, as this version includes the security fix addressing CVE-2026-30943.'}, {'type': 'paragraph', 'content': "This update corrects the insufficient authorization check in the file replace API that allowed users with only list visibility permission to delete other users' files."}, {'type': 'paragraph', 'content': 'Applying this update will prevent unauthorized file deletions and secure your system against this privilege escalation vulnerability.'}] [2]


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart