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.
Published: 2026-02-19
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized file upload leading to potential malware hosting or disk exhaustion
Action: Patch Now
AI Analysis

Impact

Gogs, an open‑source self‑hosted Git platform, contains a flaw that allows anyone on the Internet to upload arbitrary files to certain directory endpoints. When the server’s RequireSigninView option is left disabled—the default setting—remote users can target /releases/attachments and /issues/attachments without authentication. The flaw provides a means for hostile actors to upload malicious payloads or large amounts of data, which can be used to host malware, exhaust disk space, or otherwise influence the instance’s integrity and availability. The issue is rooted in an access‑control weakness (CWE‑862), and it bypasses CSRF protection because the cookie is issued under the same origin.

Affected Systems

The vulnerable versions are Gogs releases 0.13.4 and older. The product is available under the gogs gogs CPE. These versions are listed by the CNA as affected and have not been patched until the 0.14.1 release, which removes the unauthenticated upload capability.

Risk and Exploitability

The CVSS base score of 6.9 indicates a moderate‑to‑high risk. The EPSS score is below 1 %, suggesting a low probability of exploitation, and the vulnerability is not currently in the CISA KEV catalog. Because the attack requires only an unauthenticated HTTP request to a publicly accessible endpoint, it can be carried out by anyone with network access to the instance. Attackers could then upload files that the service stores or serves to other users. While malicious execution is not guaranteed by the vulnerability alone, the presence of uploaded code creates a vector for subsequent compromise or denial‑of‑service.

Generated by OpenCVE AI on April 17, 2026 at 18:18 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Gogs to version 0.14.1 or later, where the unauthenticated upload feature has been removed.
  • If an immediate upgrade is not possible, modify the Gogs configuration to enable RequireSigninView or otherwise lock down the /releases/attachments and /issues/attachments endpoints so that only authenticated users can upload files.
  • Configure firewall or reverse‑proxy rules to block unauthenticated requests to the /releases/attachments and /issues/attachments paths.

Generated by OpenCVE AI on April 17, 2026 at 18:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-fc3h-92p8-h36f Unauthenticated File Upload in Gogs
History

Fri, 20 Feb 2026 01:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 19 Feb 2026 19:45:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Thu, 19 Feb 2026 10:30:00 +0000

Type Values Removed Values Added
First Time appeared Gogs
Gogs gogs
Vendors & Products Gogs
Gogs gogs

Thu, 19 Feb 2026 03:30:00 +0000

Type Values Removed Values Added
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.
Title Gogs allows unauthenticated file uploads
Weaknesses CWE-862
References
Metrics cvssV4_0

{'score': 6.9, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-02-19T17:44:40.834Z

Reserved: 2026-01-30T14:44:47.329Z

Link: CVE-2026-25242

cve-icon Vulnrichment

Updated: 2026-02-19T17:23:31.009Z

cve-icon NVD

Status : Analyzed

Published: 2026-02-19T07:17:45.687

Modified: 2026-02-19T19:46:19.810

Link: CVE-2026-25242

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-17T18:30:05Z

Weaknesses