# CVE-2026-30943: Gokapi has Privilege Escalation in File Replace

- Severity: Medium 4.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/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.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-03-13T18:56:32.000Z
- Modified: 2026-06-17T10:33:11.800Z
- Also known as: GHSA-j6jp-78w8-34x6, GO-2026-4696
- Weaknesses: CWE-863
- 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 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.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/Forceu/Gokapi/security/advisories/GHSA-j6jp-78w8-34x6> (advisory, vendor-advisory, web)
- <https://github.com/Forceu/Gokapi/releases/tag/v2.2.4> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-30943> (advisory)
- <https://github.com/Forceu/Gokapi> (package)
- <https://pkg.go.dev/vuln/GO-2026-4696> (web)

## Sources

- CVE List: [CVE-2026-30943](https://www.cve.org/CVERecord?id=CVE-2026-30943), CVE Terms of Use, modified 2026-03-13
- GitHub Advisory Database: [GHSA-j6jp-78w8-34x6](https://github.com/advisories/GHSA-j6jp-78w8-34x6), CC-BY-4.0, modified 2026-03-24
- Go Vulnerability Database: [GO-2026-4696](https://pkg.go.dev/vuln/GO-2026-4696), CC-BY-4.0, modified 2026-03-23
- NVD: [CVE-2026-30943](https://nvd.nist.gov/vuln/detail/CVE-2026-30943), Public domain, modified 2026-06-17

---

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