Skip to content
OpenAdvisories
Medium · 4.3 CVE-2026-30961 EUVD-2026-12080GHSA-45vh-rpc8-hxppGO-2026-4695

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

Published Mar 13, 2026 · Updated Mar 13, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
Forceu Gokapi < 2.2.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20260317T205859-150000.1.152.1 SUSE-SU-2026:1042-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/forceu/gokapi < 2.2.4 2.2.4 GHSA-45vh-rpc8-hxpp
Go github.com/forceu/gokapi all versions — GO-2026-4695

Advisories 2

References