Black Friday60% off BLACKFRIDAY2026
Platform
PlansPartners
Resources
ToolsBlogDocs
Sign Up →
medium·Web Vulnerabilities·Updated Nov 25, 2026

CVE-2026-25242 Scanner

CVE-2026-25242 Scanner - Unauthenticated File Upload vulnerability in Gogs

How to fix it
Est. Time~10 seconds
Scan TypeGroup Scan
Targetsdomain, subdomain, ipv4
CostFree
0
Times Used
continuous scan runs
4.7k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
6.9
CVSSmedium
Exploitable remotely over the internet · no authentication required.
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.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
gogsby gogs
< 0.14.1
Updated Nov 29, 2026View on NVD →
Detail

Gogs is an open-source self-hosted Git service that is used by developers and project teams for managing Git repositories. It offers an efficient and lightweight platform to handle Git hosting. Users often deploy Gogs because it is easy to install and works seamlessly across various operating systems. Developers appreciate its simplicity and the autonomy it grants in managing projects on their infrastructure. Many Git service functionalities, like issue tracking and repository management, are included. Through its versatile features, Gogs facilitates collaborative development.

The vulnerability in Gogs relates to unauthenticated file uploads which expose undesired endpoints. It can occur when the global RequireSigninView setting is disabled, allowing remote users to upload files unauthenticated. Such vulnerabilities may arise due to misconfigured permissions in managing attachment endpoints in certain versions. They potentially allow the exploitation of affected systems without requiring validation of the user's identity. This can lead to significant security concerns for systems running the affected Gogs versions. Proper management of authentication settings is crucial in mitigating this vulnerability.

The technical details of this vulnerability reveal that attachment upload handlers are open to unauthenticated access. The vulnerability affects endpoints like `/releases/attachments` and `/issues/attachments`, allowing arbitrary file uploads. It occurs when CSRF tokens are inadequately managed, and same-origin policies do not suffice to prevent abuse. A lack of proper access controls further exacerbates this issue with default settings permitting unrestricted uploads. Such configurations can be leveraged maliciously to store or distribute unauthorized content. The vulnerability reveals critical gaps in file upload security in certain configurations of Gogs.

If exploited, this vulnerability could enable disk exhaustion due to unmonitored file uploads. Malicious actors could use the server as a public file host, potentially leading to malware dissemination. It may also allow for unintended content delivery which can impair the service. Consequentially, organizations might face reputational damages or legal consequences if malicious data is shared. Furthermore, resource strain might degrade legitimate user experience and operational stability. For a robust defense, addressing the authentication gaps is essential.

REFERENCES

Solution Advice
Remediation:
  • Update Gogs to version 0.14.1 or later where this issue is fixed.
  • Enable strict authentication settings to require user sign-in before accessing upload endpoints.
  • Regularly audit and update file upload permissions to ensure restricted access.
  • Implement network monitoring to detect and respond to unauthorized file activity swiftly.
  • Enhance logging practices to keep a detailed account of file uploads and user actions.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

12,000+ scanners. Free to start. No credit card required.

Browse All Tools