{"id":"CVE-2026-30943","aliases":["CVE-2026-30943","GHSA-j6jp-78w8-34x6","GO-2026-4696"],"related":[],"kind":"vulnerability","state":"published","title":"Gokapi has Privilege Escalation in File Replace","summary":"Gokapi is a self-hosted file sharing server with automatic expiration and encryption support. Prior to 2.2.4, An insufficient authorization check in the file replace API allows a user with only list visibility permission (UserPermListOtherUploads) to delete another user's file by abusing the deleteNewFile flag, bypassing the requirement for UserPermDeleteOtherUploads. This vulnerability is fixed in 2.2.4.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Gokapi is a self-hosted file sharing server with automatic expiration and encryption support. Prior to 2.2.4, An insufficient authorization check in the file replace API allows a user with only list visibility permission (UserPermListOtherUploads) to delete another user's file by abusing the deleteNewFile flag, bypassing the requirement for UserPermDeleteOtherUploads. This vulnerability is fixed in 2.2.4.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nAn insufficient authorization check in the file replace API allows a user with only list visibility permission (`UserPermListOtherUploads`) to delete another user's file by abusing the `deleteNewFile` flag, bypassing the requirement for `UserPermDeleteOtherUploads`.\n\n### Impact\n\nAny authenticated user with `PERM_REPLACE` (replace own files) and `PERM_LIST` (view other users' uploads) can delete any other user's file without needing `PERM_DELETE`.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Gokapi vulnerable to Privilege Escalation in File Replace 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.4.","format":"markdown","source":"go"},{"lang":"es","text":"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.4, una comprobación de autorización insuficiente en la API de reemplazo de archivos permite a un usuario con solo permiso de visibilidad de lista (UserPermListOtherUploads) eliminar el archivo de otro usuario abusando del flag deleteNewFile, eludiendo el requisito de UserPermDeleteOtherUploads. Esta vulnerabilidad se corrigió en la versión 2.2.4.","source":"nvd"}],"published":"2026-03-13T18:56:32.000Z","modified":"2026-06-17T10:33:11.800Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:L/A:N","score":4.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:L/A:N","score":4.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:L/A:N","score":4.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:L/A:N","score":4.1,"rating":"MEDIUM"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"version":"< 2.2.4","status":"affected"}],"vendor":"Forceu","product":"Gokapi","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.2.4"}],"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.4"}],"vendor":"forceu","product":"gokapi","cpe":"cpe:2.3:a:forceu:gokapi:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Forceu/Gokapi/security/advisories/GHSA-j6jp-78w8-34x6","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/Forceu/Gokapi/releases/tag/v2.2.4","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30943","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Forceu/Gokapi","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2026-4696","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-13T19:40:28.442Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-30943","url":"https://www.cve.org/CVERecord?id=CVE-2026-30943","licence":"CVE Terms of Use","modified":"2026-03-13T19:40:38.395Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j6jp-78w8-34x6","url":"https://github.com/advisories/GHSA-j6jp-78w8-34x6","licence":"CC-BY-4.0","modified":"2026-03-24T21:16:29.129Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4696","url":"https://pkg.go.dev/vuln/GO-2026-4696","licence":"CC-BY-4.0","modified":"2026-03-23T04:52:56.519Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-30943","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-30943","licence":"Public domain","modified":"2026-06-17T10:33:11.800Z"}],"updatedAt":"2026-11-25T22:59:15.880Z","epss":{"score":0.00194,"percentile":0.09491,"date":"2026-12-01T12:00:22.000Z"}}