CVE-2026-29061: CWE-284: Improper Access Control in Forceu Gokapi
CVE-2026-29061 is a medium severity privilege escalation vulnerability in Forceu's Gokapi file sharing server versions prior to 2. 2. 3. The flaw lies in improper access control within the user rank demotion logic, where demoted users retain API keys with elevated permissions (ApiPermManageFileRequests and ApiPermManageLogs). This allows them to continue managing upload requests and viewing logs despite losing their privileges. Exploitation requires prior authenticated access and user interaction, and the vulnerability affects confidentiality and integrity but not availability. The issue has been patched in version 2. 2. 3. Organizations using vulnerable Gokapi versions should upgrade promptly to mitigate risk.
AI Analysis
Technical Summary
The vulnerability identified as CVE-2026-29061 affects Forceu's Gokapi, a self-hosted file sharing server that supports automatic expiration and encryption. The root cause is improper access control (CWE-284) in the user rank demotion logic prior to version 2.2.3. When a user's rank is demoted, their existing API keys erroneously retain permissions ApiPermManageFileRequests and ApiPermManageLogs. These permissions allow the user to manage upload requests and access server logs, respectively. Consequently, a demoted user can continue to perform privileged actions despite having been stripped of all other privileges. The vulnerability requires the attacker to have an existing authenticated session and involves user interaction to exploit. The CVSS 3.1 base score is 5.4 (medium severity), reflecting network attack vector, low attack complexity, required privileges, and user interaction. The scope is changed (S:C) because the vulnerability allows access beyond the original authorization boundaries. Confidentiality and integrity are impacted due to unauthorized access to sensitive logs and management functions, but availability is unaffected. No known exploits are reported in the wild. The issue was addressed in Gokapi version 2.2.3 by correcting the access control logic to revoke permissions from API keys upon user rank demotion.
Potential Impact
This vulnerability can lead to unauthorized access to sensitive operational data and management functions within Gokapi servers. Attackers who have been demoted but retain API keys can continue to view logs, potentially exposing sensitive information such as user activity or system errors. They can also manage upload requests, which could be abused to upload malicious files or interfere with legitimate file sharing workflows. This undermines the integrity of the system's access control and could facilitate further attacks or data leakage. Organizations relying on Gokapi for secure file sharing may face increased risk of insider threats or compromised accounts maintaining elevated access. While availability is not directly impacted, the breach of confidentiality and integrity can have serious compliance and reputational consequences, especially in regulated industries or environments handling sensitive data.
Mitigation Recommendations
The primary mitigation is to upgrade all affected Gokapi instances to version 2.2.3 or later, where the vulnerability has been patched. Administrators should audit existing API keys, especially those belonging to demoted users, and revoke or regenerate them to ensure no lingering elevated permissions remain. Implement strict API key lifecycle management and monitoring to detect anomalous usage patterns. Employ role-based access control (RBAC) reviews regularly to confirm that user privileges and associated API keys are synchronized correctly. Additionally, enable detailed logging and alerting on API key usage related to upload management and log access endpoints to detect potential abuse. Consider implementing multi-factor authentication (MFA) for administrative access to reduce the risk of compromised credentials being exploited. Finally, educate users and administrators about the importance of promptly updating software and revoking credentials when user roles change.
Affected Countries
United States, Germany, United Kingdom, France, Canada, Australia, Netherlands, Japan, South Korea, Singapore
CVE-2026-29061: CWE-284: Improper Access Control in Forceu Gokapi
Description
CVE-2026-29061 is a medium severity privilege escalation vulnerability in Forceu's Gokapi file sharing server versions prior to 2. 2. 3. The flaw lies in improper access control within the user rank demotion logic, where demoted users retain API keys with elevated permissions (ApiPermManageFileRequests and ApiPermManageLogs). This allows them to continue managing upload requests and viewing logs despite losing their privileges. Exploitation requires prior authenticated access and user interaction, and the vulnerability affects confidentiality and integrity but not availability. The issue has been patched in version 2. 2. 3. Organizations using vulnerable Gokapi versions should upgrade promptly to mitigate risk.
AI-Powered Analysis
Technical Analysis
The vulnerability identified as CVE-2026-29061 affects Forceu's Gokapi, a self-hosted file sharing server that supports automatic expiration and encryption. The root cause is improper access control (CWE-284) in the user rank demotion logic prior to version 2.2.3. When a user's rank is demoted, their existing API keys erroneously retain permissions ApiPermManageFileRequests and ApiPermManageLogs. These permissions allow the user to manage upload requests and access server logs, respectively. Consequently, a demoted user can continue to perform privileged actions despite having been stripped of all other privileges. The vulnerability requires the attacker to have an existing authenticated session and involves user interaction to exploit. The CVSS 3.1 base score is 5.4 (medium severity), reflecting network attack vector, low attack complexity, required privileges, and user interaction. The scope is changed (S:C) because the vulnerability allows access beyond the original authorization boundaries. Confidentiality and integrity are impacted due to unauthorized access to sensitive logs and management functions, but availability is unaffected. No known exploits are reported in the wild. The issue was addressed in Gokapi version 2.2.3 by correcting the access control logic to revoke permissions from API keys upon user rank demotion.
Potential Impact
This vulnerability can lead to unauthorized access to sensitive operational data and management functions within Gokapi servers. Attackers who have been demoted but retain API keys can continue to view logs, potentially exposing sensitive information such as user activity or system errors. They can also manage upload requests, which could be abused to upload malicious files or interfere with legitimate file sharing workflows. This undermines the integrity of the system's access control and could facilitate further attacks or data leakage. Organizations relying on Gokapi for secure file sharing may face increased risk of insider threats or compromised accounts maintaining elevated access. While availability is not directly impacted, the breach of confidentiality and integrity can have serious compliance and reputational consequences, especially in regulated industries or environments handling sensitive data.
Mitigation Recommendations
The primary mitigation is to upgrade all affected Gokapi instances to version 2.2.3 or later, where the vulnerability has been patched. Administrators should audit existing API keys, especially those belonging to demoted users, and revoke or regenerate them to ensure no lingering elevated permissions remain. Implement strict API key lifecycle management and monitoring to detect anomalous usage patterns. Employ role-based access control (RBAC) reviews regularly to confirm that user privileges and associated API keys are synchronized correctly. Additionally, enable detailed logging and alerting on API key usage related to upload management and log access endpoints to detect potential abuse. Consider implementing multi-factor authentication (MFA) for administrative access to reduce the risk of compromised credentials being exploited. Finally, educate users and administrators about the importance of promptly updating software and revoking credentials when user roles change.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-03T17:50:11.245Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69aa6319c48b3f10ff135411
Added to database: 3/6/2026, 5:16:09 AM
Last enriched: 3/6/2026, 5:31:03 AM
Last updated: 3/6/2026, 6:39:03 AM
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.