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-05-07
AI Q&A
2026-02-19
EPSS Evaluated
2026-05-05
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 Powered Q&A
Can you explain this vulnerability to me?

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.


How can this vulnerability impact me? :

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.

How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:

I don't know


How can this vulnerability be detected on my network or system? Can you suggest some commands?

I don't know


What immediate steps should I take to mitigate this vulnerability?

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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart