Skip to content

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

MediumCVSS 4.1 EPSS 0.19%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 1 fixed, 1 partially fixed.

PackageAffectedFixed inStatus
forceu github.com/forceu/gokapi(Go) < 2.2.4; <= 2.2.3; All versions 2.2.4 Partially fixed
forceu github.com/forceu/gokapi < 2.2.4; = < 2.2.4 2.2.4 Fixed

Affected products

ProductAffected versionsFixed in
forceu github.com/forceu/gokapi(Go) < 2.2.4 2.2.4
forceu github.com/forceu/gokapi(Go) All versions No fix listed
forceu github.com/forceu/gokapi = < 2.2.4 No fix listed
forceu github.com/forceu/gokapi(Go) <= 2.2.3 No fix listed
forceu github.com/forceu/gokapi < 2.2.4 2.2.4

References