CVE-2026-30943: Gokapi has Privilege Escalation in File Replace

Published Mar 13, 2026
·
Updated

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

2 affected componentsFixes available
go/github.com/forceu/gokapi<=2.2.3
2.2.4
Forceu Gokapi<2.2.4

Event History

Mar 13, 2026
Advisory Published
via GitHub·06:56 PM
Data Sourced
via GitHub·06:56 PM
DescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·07:07 PM
Data Sourced
via MITRE·07:07 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:54 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-30943?

CVE-2026-30943 is classified as a critical vulnerability due to its potential for privilege escalation.

2

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.

3

Who is affected by CVE-2026-30943?

Any user utilizing Gokapi versions up to 2.2.3 is vulnerable to CVE-2026-30943.

4

What type of vulnerability is CVE-2026-30943?

CVE-2026-30943 is a privilege escalation vulnerability affecting the file replace API.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203