CVE-2026-29061: Gokapi: Privilege escalation via incomplete API-key permission revocation on user rank demotion

Published Mar 5, 2026
·
Updated

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

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

Event History

Mar 5, 2026
Advisory Published
via GitHub·08:42 PM
Data Sourced
via GitHub·08:42 PM
DescriptionSeverityWeaknessAffected Software
Mar 6, 2026
CVE Published
via MITRE·04:45 AM
Data Sourced
via MITRE·04:45 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-29061?

CVE-2026-29061 is categorized as a privilege escalation vulnerability.

2

How do I fix CVE-2026-29061?

To fix CVE-2026-29061, update to Gokapi version 2.2.3 or later.

3

What applications are affected by CVE-2026-29061?

CVE-2026-29061 affects Gokapi versions prior to 2.2.3.

4

What causes CVE-2026-29061?

CVE-2026-29061 is caused by incomplete API-key permission revocation upon user rank demotion.

5

Can a demoted user retain permissions due to CVE-2026-29061?

Yes, a demoted user can retain ApiPermManageFileRequests and ApiPermManageLogs permissions.

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