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-06-16
AI Q&A
2026-03-13
EPSS Evaluated
2026-06-15
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 Quick Actions
Instant insights powered by AI
Executive Summary

[{'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]

Impact Analysis

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.

Compliance Impact

I don't know

Detection Guidance

I don't know

Mitigation Strategies

[{'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]

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-30943. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart