CVE-2026-29061: Gokapi: Privilege escalation via incomplete API-key permission revocation on user rank demotion
Summary A privilege escalation vulnerability in the user rank demotion logic allows a demoted user's existing API keys to retain ApiPermManageFileRequests and ApiPermManageLogs permissions, enabling continued access to upload-request management and log viewing endpoints after the user has been stripped of all privileges.
Impact Any user who previously held Admin rank and had API keys with ApiPermManageFileRequests or ApiPermManageLogs retains those capabilities after demotion. This allows offboarded or demoted users to: - Create, list, and delete upload requests - Read application logs and system status
Other sources
Gokapi is a self-hosted file sharing server with automatic expiration and encryption support. Prior to version 2.2.3, a privilege escalation vulnerability in the user rank demotion logic allows a demoted user's existing API keys to retain ApiPermManageFileRequests and ApiPermManageLogs permissions, enabling continued access to upload-request management and log viewing endpoints after the user has been stripped of all privileges. This issue has been patched in version 2.2.3.
— MITRE
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-29061?
CVE-2026-29061 is categorized as a privilege escalation vulnerability.
How do I fix CVE-2026-29061?
To fix CVE-2026-29061, update to Gokapi version 2.2.3 or later.
What applications are affected by CVE-2026-29061?
CVE-2026-29061 affects Gokapi versions prior to 2.2.3.
What causes CVE-2026-29061?
CVE-2026-29061 is caused by incomplete API-key permission revocation upon user rank demotion.
Can a demoted user retain permissions due to CVE-2026-29061?
Yes, a demoted user can retain ApiPermManageFileRequests and ApiPermManageLogs permissions.