CVE-2026-30961 Gokapi's File Request MaxSize Limit Bypassed via Multi-Chunk Upload
MediumCVSS 4.3
EPSS 0.27%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| forceu github.com/forceu/gokapi(Go) | < 2.2.4; <= 2.2.3; All versions | 2.2.4 | Partially fixed |
| forceu github.com/forceu/gokapi | < 2.2.4; = < 2.2.4 | 2.2.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| forceu github.com/forceu/gokapi(Go) | < 2.2.4 | 2.2.4 |
| forceu github.com/forceu/gokapi(Go) | All versions | No fix listed |
| forceu github.com/forceu/gokapi | = < 2.2.4 | No fix listed |
| forceu github.com/forceu/gokapi(Go) | <= 2.2.3 | No fix listed |
| forceu github.com/forceu/gokapi | < 2.2.4 | 2.2.4 |
References
- https://github.com/Forceu/Gokapi/security/advisories/GHSA-45vh-rpc8-hxpp vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- https://github.com/Forceu/Gokapi/releases/tag/v2.2.4 product release-notes
- pkg.go.dev
- github.com