CVE-2026-25242
Undergoing Analysis Undergoing Analysis - In Progress
Unauthenticated File Upload in Gogs Enables Arbitrary Hosting

Publication date: 2026-02-19

Last updated on: 2026-02-19

Assigner: GitHub, Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-02-19
Last Modified
2026-02-19
Generated
2026-06-16
AI Q&A
2026-02-19
EPSS Evaluated
2026-06-15
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
gogs gogs to 0.14.1 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-862 The product does not perform an authorization check when an actor attempts to access a resource or perform an action.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability affects Gogs, an open source self-hosted Git service, in versions 0.13.4 and below. When the global RequireSigninView setting is disabled (which is the default), any remote user can upload arbitrary files to the server through unauthenticated file upload endpoints located at /releases/attachments and /issues/attachments.

Because these endpoints are exposed without authentication, attackers can abuse the instance as a public file host. This can lead to issues such as disk exhaustion, hosting unwanted content, or delivering malware. Additionally, CSRF tokens do not prevent this attack due to the way same-origin cookies are issued.

This vulnerability was fixed in version 0.14.1 of Gogs.

Impact Analysis

This vulnerability can impact you by allowing unauthorized users to upload arbitrary files to your Gogs server. This can result in several negative consequences:

  • Disk exhaustion due to uncontrolled file uploads, potentially causing denial of service.
  • Hosting of malicious or unwanted content on your server, which could damage your reputation or violate policies.
  • Delivery of malware to users who access the uploaded files, leading to security risks for your users.
Compliance Impact

I don't know

Detection Guidance

I don't know

Mitigation Strategies

To mitigate this vulnerability, upgrade Gogs to version 0.14.1 or later, where the issue has been fixed.

Alternatively, ensure that the global RequireSigninView setting is enabled to prevent unauthenticated file uploads.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-25242. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart