{"id":"CVE-2026-29061","published":"2026-03-06T04:45:15Z","modified":"2026-03-06T16:06:23Z","title":"Gokapi: Privilege escalation via incomplete API-key permission revocation on user rank demotion","vendor":"Forceu","product":"Gokapi","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00168,"percentile":0.0347,"provenance":"source"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://github.com/Forceu/Gokapi/security/advisories/GHSA-q658-hfpg-35qc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Forceu/Gokapi/releases/tag/v2.2.3","tags":["x_refsource_MISC"]}],"priority":{"score":4.5,"factors":[{"name":"EPSS percentile","points":0.69},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"forceu","affectedVersions":[{"vendor":"Forceu","product":"Gokapi","versions":["< 2.2.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-06T15:50:31.378374Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/forceu/gokapi","vulnerableRanges":["<2.2.3","all versions"],"patched":["2.2.3"],"from":["GHSA-q658-hfpg-35qc","GO-2026-4626"],"provenance":"source"}],"summary":{"text":"The flaw is in Gokapi, a self-hosted file sharing server, specifically in its user rank demotion logic, which fails to fully revoke API keys when a user is demoted. A demoted user's existing API keys keep the ApiPermManageFileRequests and ApiPermManageLogs permissions, so an attacker holding such a key can still reach upload-request management and log viewing endpoints after losing all other privileges, which requires network access and a low-privileged account, with user interaction needed for the scope change.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:35Z"},"euvd":{"id":"EUVD-2026-9999","exploited":false,"provenance":"source"}}