CVE-2026-30943
Authorization Bypass in Gokapi File Replace API Allows Deletion
Publication date: 2026-03-13
Last updated on: 2026-03-17
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| forceu | gokapi | to 2.2.4 (exc) |
Helpful Resources
Exploitability
| 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]