# CVE-2026-29061: Gokapi: Privilege escalation via incomplete API-key permission revocation on user rank demotion

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-03-05T20:42:32.000Z
- Modified: 2026-06-17T10:29:31.847Z
- Also known as: GHSA-q658-hfpg-35qc, GO-2026-4626
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- Forceu Gokapi: < 2.2.3; before 2.2.3
- github.com/forceu/gokapi (Go): before 2.2.3; all versions

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/Forceu/Gokapi/security/advisories/GHSA-q658-hfpg-35qc> (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-29061> (advisory)
- <https://github.com/Forceu/Gokapi> (package)

## Sources

- CVE List: [CVE-2026-29061](https://www.cve.org/CVERecord?id=CVE-2026-29061), CVE Terms of Use, modified 2026-03-06
- GitHub Advisory Database: [GHSA-q658-hfpg-35qc](https://github.com/advisories/GHSA-q658-hfpg-35qc), CC-BY-4.0, modified 2026-03-23
- Go Vulnerability Database: [GO-2026-4626](https://pkg.go.dev/vuln/GO-2026-4626), CC-BY-4.0, modified 2026-03-23
- NVD: [CVE-2026-29061](https://nvd.nist.gov/vuln/detail/CVE-2026-29061), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-29061 · Whole record: https://cve.day/CVE-2026-29061.json · Rebuilt by cve.day 2026-11-25T22:59:15.388Z
