CVE-2026-29060
JSON

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 packageVersionsReported by
Forceu Gokapi< 2.2.3, before 2.2.3CVE List, NVD
github.com/forceu/gokapi (Go)before 2.2.3, all versionsGitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M5.0medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L
GitHub5.0medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:L
NVD5.0medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N

Classification

CWE-284

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

Sources

SourceRecordLicence
CVE ListCVE-2026-29060 changed 2026-03-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-m2hx-wjxc-9fp4 changed 2026-03-23CC-BY-4.0
Go Vulnerability DatabaseGO-2026-4615 changed 2026-03-23CC-BY-4.0
NVDCVE-2026-29060 changed 2026-06-17Public domain