CVE-2026-30961 Gokapi's File Request MaxSize Limit Bypassed via Multi-Chunk Upload

Medium 4.3 Published Updated

Attackers can bypass file size limits on public file requests by uploading oversized files in multiple chunks, potentially exhausting server storage.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-30961?

CVE-2026-30961 is a medium-severity vulnerability in Forceu Gokapi, published on 13 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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.

Weakness: CWE-770

Which versions are affected by CVE-2026-30961?

3 open source packages ship an affected version, including github.com/forceu/gokapi. It affects 1 product.

PackageAffectedFixed in
github.com/forceu/gokapi GoAll versionsNone
github.com/forceu/gokapi GoAll versions2.2.4
github.com/forceu/gokapi GoAll versions2.2.4

Products include Forceu Gokapi.

How do I fix CVE-2026-30961?

Upgrade github.com/forceu/gokapi to 2.2.4 or later.

Is CVE-2026-30961 being exploited?

There is no known exploitation of CVE-2026-30961 in the wild and no public exploit code.

Sources

Also known as GHSA-45vh-rpc8-hxpp, GO-2026-4695.

Is CVE-2026-30961 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free