CVE-2026-25242
Unauthenticated File Upload in Gogs Enables Arbitrary Hosting
Publication date: 2026-02-19
Last updated on: 2026-02-19
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| gogs | gogs | to 0.14.1 (exc) |
Helpful Resources
Exploitability
| 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.