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

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- 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.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-03-13T18:56:51.000Z
- Modified: 2026-06-17T10:33:13.830Z
- Also known as: GHSA-45vh-rpc8-hxpp, GO-2026-4695
- Weaknesses: CWE-20, CWE-770
- 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, 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.

(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.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 4.3 Medium `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> (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-30961> (advisory)
- <https://github.com/Forceu/Gokapi> (package)
- <https://pkg.go.dev/vuln/GO-2026-4695> (web)

## Sources

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

---

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