Remote Code Execution via File Overwrite in Gogs PutContents API
Active Exploitation · 19 sources · Updated 5mo ago · First seen Dec 10, 2025

A critical vulnerability, tracked as CVE-2025-8110, has been identified in the PutContents API of the Gogs self-hosted Git service. The flaw arises from improper handling of symbolic links, allowing remote, authenticated attackers to overwrite arbitrary files on the server. Successful exploitation enables attackers to execute arbitrary code with the privileges of the Gogs server process, potentially leading to full system compromise. Security researchers have reported that this vulnerability is being actively exploited in the wild, and it affects Gogs versions 0.13.3 and prior.
Currently, there is no patched version available to address CVE-2025-8110. Administrators are advised to disable auto-registration of users and avoid exposing Gogs instances to the internet as temporary mitigations. Detection of vulnerable systems can be performed using specific queries to identify Gogs installations, such as searching for HTTP services with a known favicon hash. Organizations running Gogs should prioritize mitigation steps to reduce the risk of exploitation until an official fix is released.
Why it matters
Impact assessment
CVE-2025-8110 is a critical exposure for organizations running self-hosted Gogs, especially internet-facing instances with open registration enabled. Impact is severe because authenticated attackers can overwrite arbitrary files and achieve code execution as the Gogs service account, creating risk of source code theft, malware deployment, persistence, and potential full host compromise.
Active exploitation is confirmed in the wild, and reporting consistently indicates broad opportunistic targeting rather than narrow victim selection. Multiple sources cite roughly 1,400-1,500 exposed Gogs instances and more than 700 compromised systems, making this a widespread exposure for any enterprise, developer platform, or internal engineering environment using vulnerable Gogs deployments.
Affected populations
- Organizations operating Gogs self-hosted Git service
- Highest risk: Gogs 0.13.3 and earlier
- Highest risk configuration: internet-exposed instances with Open Registration enabled by default
- Likely affected sectors: any industry using self-hosted developer infrastructure, including enterprise software, cloud, on-prem engineering, and internal DevOps environments
Severity and business consequences
- Remote code execution with privileges of the Gogs server process
- Arbitrary file overwrite outside repository boundaries
- Potential theft of source code and secrets stored on or reachable from the host
- Malware deployment observed, including Supershell for persistent remote access
- Operational disruption possible if Git service integrity is altered or host remediation requires rebuild
- Reputational and financial impact likely if proprietary code or credentials are exposed
Scope and exploitation status
- Active exploitation in the wild is confirmed
- Campaign appears automated and opportunistic, described as smash-and-grab
- More than 700 compromised public-facing instances reported across multiple references
- Earliest observed exploitation: 2025-07-10
- Second wave of attacks observed on 2025-11-01
Entity and product facts
- Product: Gogs
- Related but likely unaffected forks: Gitea, Forgejo
- Researcher/organization: Wiz Research
- Malware/C2 framework: Supershell
- Maintainer acknowledgment reported on 2025-10-30
- No patch available as of 2025-12-10/11


