Vulnerability · Published Mar 13, 2026 · Assigned by GitHub_M
CVE-2026-30961Gokapi's File Request MaxSize Limit Bypassed via Multi-Chunk Upload
Medium 4.3
In plain English
A medium-severity resource allocation without limits in Gokapi from Forceu. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 18% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Gokapi is a self-hosted file sharing server with automatic expiration and encryption support. Prior to 2.2.4, the chunked upload completion path for file requests does not validate the total file size against the per-request MaxSize limit. An attacker with a public file request link can split an oversized file into chunks each under MaxSize and upload them sequentially, bypassing the size restriction entirely. Files up to the server's global MaxFileSizeMB are accepted regardless of the file request's configured limit. This vulnerability is fixed in 2.2.4.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/forceu/gokapi | 2.2.4 | GHSA-45vh-rpc8-hxpp |
| Go | github.com/forceu/gokapi | no fix listed | GO-2026-4695 |
Affected products (as reported)
Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
References
- https://github.com/Forceu/Gokapi/security/advisories/GHSA-45vh-rpc8-hxpp x_refsource_CONFIRM
- https://github.com/Forceu/Gokapi/releases/tag/v2.2.4 x_refsource_MISC