{"id":"CVE-2026-29061","aliases":["CVE-2026-29061","GHSA-q658-hfpg-35qc","GO-2026-4626"],"related":[],"kind":"vulnerability","state":"published","title":"Gokapi: Privilege escalation via incomplete API-key permission revocation on user rank demotion","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Summary\nA 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.\n\n### Impact\nAny 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:\n  - Create, list, and delete upload requests\n  - Read application logs and system status","format":"markdown","source":"ghsa"},{"lang":"en","text":"Gokapi has privilege escalation via incomplete API-key permission revocation on user rank demotion in github.com/forceu/gokapi.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/forceu/gokapi before v2.2.3.","format":"markdown","source":"go"},{"lang":"es","text":"Gokapi es un servidor de intercambio de archivos autoalojado con expiración automática y soporte de cifrado. Antes de la versión 2.2.3, una vulnerabilidad de escalada de privilegios en la lógica de degradación de rango de usuario permite que las claves API existentes de un usuario degradado retengan los permisos ApiPermManageFileRequests y ApiPermManageLogs, lo que permite el acceso continuo a los puntos finales de gestión de solicitudes de carga y visualización de registros después de que al usuario se le hayan retirado todos los privilegios. Este problema ha sido parcheado en la versión 2.2.3.","source":"nvd"}],"published":"2026-03-05T20:42:32.000Z","modified":"2026-06-17T10:29:31.847Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-284"],"affected":[{"ranges":[{"version":"< 2.2.3","status":"affected"}],"vendor":"Forceu","product":"Gokapi","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.2.3"}],"ecosystem":"Go","package":"github.com/forceu/gokapi","purl":"pkg:golang/github.com/forceu/gokapi","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/forceu/gokapi","purl":"pkg:golang/github.com/forceu/gokapi","source":"go"},{"ranges":[{"status":"affected","fixed":"2.2.3"}],"vendor":"forceu","product":"gokapi","cpe":"cpe:2.3:a:forceu:gokapi:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Forceu/Gokapi/security/advisories/GHSA-q658-hfpg-35qc","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/Forceu/Gokapi/releases/tag/v2.2.3","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-29061","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/Forceu/Gokapi","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-06T15:50:31.378Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-29061","url":"https://www.cve.org/CVERecord?id=CVE-2026-29061","licence":"CVE Terms of Use","modified":"2026-03-06T16:06:23.367Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q658-hfpg-35qc","url":"https://github.com/advisories/GHSA-q658-hfpg-35qc","licence":"CC-BY-4.0","modified":"2026-03-23T04:56:08.870Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4626","url":"https://pkg.go.dev/vuln/GO-2026-4626","licence":"CC-BY-4.0","modified":"2026-03-23T04:53:17.634Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-29061","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-29061","licence":"Public domain","modified":"2026-06-17T10:29:31.847Z"}],"updatedAt":"2026-11-25T22:59:15.388Z","epss":{"score":0.00127,"percentile":0.0255,"date":"2026-12-01T12:00:22.000Z"}}