Gogs RCE Flaw Lets Any User Execute Code — No Patch Available
Critical CVSS 9.4 vulnerability in Gogs self-hosted Git service allows authenticated users to achieve RCE via argument injection. Maintainers unresponsive since March disclosure.
A critical remote code execution vulnerability in Gogs, a popular open-source self-hosted Git service, remains unpatched despite responsible disclosure to maintainers in March 2026. The flaw carries a CVSS score of 9.4 and can be exploited by any authenticated user to execute arbitrary commands on the server.
Rapid7 Labs discovered the argument injection vulnerability (CWE-88) and has released full technical details after multiple attempts to reach the Gogs maintainer went unanswered. A Metasploit module is now available for testing purposes.
Exploitation Details
The vulnerability exists in Gogs' pull request merging functionality. When a repository is configured to use "Rebase before merging," an attacker can create a malicious branch name that injects the --exec flag into the underlying git rebase command.
The attack requires minimal access:
- Authentication: Any registered account (no admin needed)
- Repository access: Attackers can create their own repository
- User interaction: None—entirely self-contained attack
Since Gogs ships with open registration enabled by default and no limit on repository creation, an unauthenticated attacker can simply create an account on any default-configured instance, create a repository, and achieve code execution.
Impact Assessment
Successful exploitation grants attackers shell access with the privileges of the Gogs process. From there, attackers can:
- Access every repository hosted on the instance
- Dump all user credentials and session tokens
- Pivot to other network-accessible systems
- Modify hosted repositories to inject backdoors
- Escalate to full system compromise
On shared hosting environments, this creates a cross-tenant data breach scenario where one malicious user can read private repositories belonging to other users on the same Gogs instance.
Timeline and Maintainer Response
Rapid7 reported the vulnerability to Gogs maintainers on March 17, 2026, and followed up multiple times through May. The maintainer acknowledged receipt on March 28, 2026, but has not provided a patch or further communication. After the standard 90-day disclosure window expired, Rapid7 published the details.
This situation mirrors other unpatched vulnerabilities in open-source tools where single-maintainer projects struggle to respond to security disclosures.
Affected Deployments
Shodan searches identify over 1,100 internet-facing Gogs instances, though internal deployments are likely much higher. Organizations using Gogs for internal code hosting should treat this as a critical priority regardless of internet exposure—any authenticated user represents a potential attacker.
Mitigation Steps
Without a patch, organizations must implement workarounds:
- Disable user registration: Set
DISABLE_REGISTRATION = truein the Gogs configuration - Restrict repository creation: Set
MAX_CREATION_LIMIT = 0for untrusted users - Audit merge settings: Disable "Rebase before merging" on all repositories
- Network isolation: Move Gogs instances behind VPN or zero-trust access
- Consider migration: Evaluate moving to actively maintained alternatives like Gitea or GitLab
Why This Matters
Gogs has historically been a lightweight alternative to GitLab and GitHub Enterprise for organizations wanting self-hosted Git. But single-maintainer open-source projects face well-documented challenges responding to security issues. When maintainers go unresponsive, organizations are left exposed.
This vulnerability demonstrates why security teams should factor maintainer responsiveness into their vendor risk assessments for open-source dependencies. The browser extension security issues we covered recently show similar patterns where supply chain trust assumptions fail.
Organizations running Gogs should implement mitigations immediately and plan migration timelines. The combination of a public exploit module and unresponsive maintainer makes this a high-risk situation.
Related Articles
CISA KEV Deadline Hits Today for Unpatched Gogs Zero-Day
CVE-2025-8110 allows authenticated attackers to achieve RCE on self-hosted Git servers via path traversal. Over 700 instances already compromised.
Feb 2, 2026nginx-poolslip: New Zero-Day Bypasses ASLR for RCE, No Patch
Security researchers disclose nginx-poolslip, an unpatched zero-day in NGINX 1.31.0 that defeats ASLR protection. Millions of servers at risk with no CVE or fix available yet.
May 21, 2026ImageMagick Zero-Days Enable RCE on Linux, WordPress via Image Upload
AI-discovered vulnerabilities bypass all security policies including 'secure' mode. Most servers won't receive fixes until 2027 without manual intervention.
Apr 6, 2026FortiClient EMS Zero-Day Under Active Exploit — Patch Now
CVE-2026-35616 lets attackers bypass API authentication in FortiClient EMS 7.4.5-7.4.6 for unauthenticated RCE. Exploitation began March 31. Emergency hotfixes available.
Apr 5, 2026