5.0medium
Gokapi: Privilege escalation with auth token
- Severity
- 5.0medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-m2hx-wjxc-9fp4GO-2026-4615
Description
Gokapi is a self-hosted file sharing server with automatic expiration and encryption support. Prior to version 2.2.3, a registered user without privileges to create or modify file requests is able to create a short-lived API key that has the permission to do so. The user must be registered with Gokapi. If there are no users with access to the admin/upload menu, there is no impact. This issue has been patched in version 2.2.3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Forceu Gokapi | < 2.2.3, before 2.2.3 | CVE List, NVD |
| github.com/forceu/gokapi (Go) | before 2.2.3, all versions | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 5.0medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L |
| GitHub | 5.0medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L |
| NVD | 5.0medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Gokapi is a self-hosted file sharing server with automatic expiration and encryption support. Prior to version 2.2.3, a registered user without privileges to create or modify file requests is able to create a short-lived API key that has the permission to do so. The user must be registered with Gokapi. If there are no users with access to the admin/upload menu, there is no impact. This issue has been patched in version 2.2.3.
GitHub Advisory Database
Impact
A registered user without privileges to create or modify file requests is able to create a short-lived API key that has the permission to do so.
The user must be registered with Gokapi. If you do not have any other users with access to the admin/upload menu, you are not impacted.
Patches
This CVE is patched in v2.2.3
Go Vulnerability Database
Gokapi has privilege escalation with auth token in github.com/forceu/gokapi.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: github.com/forceu/gokapi before v2.2.3.
NVD (es)
Gokapi es un servidor de intercambio de archivos autoalojado con soporte para expiración automática y cifrado. Antes de la versión 2.2.3, un usuario registrado sin privilegios para crear o modificar solicitudes de archivos puede crear una clave API de corta duración que tiene permiso para hacerlo. El usuario debe estar registrado en Gokapi. Si no hay usuarios con acceso al menú de administración/carga, no hay impacto. Este problema ha sido parcheado en la versión 2.2.3.
References
| https://github.com/Forceu/Gokapi/security/advisories/GHSA-m2hx-wjxc-9fp4 | advisory, vendor-advisory, web | |
| https://github.com/Forceu/Gokapi/releases/tag/v2.2.3 | release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-29060 | advisory | |
| https://github.com/Forceu/Gokapi | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-29060 changed 2026-03-06 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m2hx-wjxc-9fp4 changed 2026-03-23 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-4615 changed 2026-03-23 | CC-BY-4.0 |
| NVD | CVE-2026-29060 changed 2026-06-17 | Public domain |