Vulnerability advisory
CVE-2026-25242
Gogs allows unauthenticated file uploads
Also known as GHSA-fc3h-92p8-h36fGO-2026-4500
Severity
- CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/gogs/gogs ↗ | |
| All commits before f5c8030c1fd936f3e0e9f774e3c7c39fd102f56f | f5c8030c1fd936f3e0e9f774e3c7c39fd102f56f |
| Not specified | 628216d5889fcb838c471f4754f09b935d9cd9f3 |
Also listed as affected (53)
| |
Description
Gogs is an open source self-hosted Git service. Versions 0.13.4 and below expose unauthenticated file upload endpoints by default. When the global RequireSigninView setting is disabled (default), any remote user can upload arbitrary files to the server via /releases/attachments and /issues/attachments. This enables the instance to be abused as a public file host, potentially leading to disk exhaustion, content hosting, or delivery of malware. CSRF tokens do not mitigate this attack due to same-origin cookie issuance. This issue has been fixed in version 0.14.1.
References
- Webgithub.com/gogs/gogs/releases/tag/v0.14.1 ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25242.json ↗
- Advisorygithub.com/gogs/gogs/security/advisories/GHSA-fc3h-92p8-h36f ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-25242 ↗
- Fixgithub.com/gogs/gogs/commit/628216d5889fcb838c471f4754f09b935d9cd9f3 ↗
- Fixgithub.com/gogs/gogs/pull/8128 ↗