An unpatched zero-day vulnerability in the Gogs self-hosted Git service can allow attackers to gain remote code execution (RCE) on Internet-facing instances. Designed as an alternative to GitHub Enterprise or GitLab and written in Go, Gogs is often exposed online for remote collaboration. This critical severity argument injection security flaw has yet to be assigned a CVE ID, affects the latest release versions (Gogs 0.14.2 and 0.15.0+dev), and can only be exploited by authenticated attackers without admin privileges. However, even though it requires basic user privileges to exploit, Rapid7 senior security researcher Jonah Burgess (who discovered the flaw) said the vulnerability affects all Gogs servers with default configurations. "Since Gogs ships with open registration enabled by default (DISABLE_REGISTRATION = false) and no limit on repository creation (MAX_CREATION_LIMIT = -1), an unauthenticated attacker can simply create an account and repository on any default-configured instance," Burges warned on Thursday. "Any registered user who creates a repo is automatically its owner. From there, enabling rebase merging is a single toggle in settings, and the entire exploit chain can be operated without interaction from any other user." Successful exploitation allows attackers to execute arbitrary code remotely as the Gogs server process user via pull requests that use a malicious branch name to inject the --exec flag into git rebase during the "Rebase before merging" merge op...
New Gogs zero-day flaw lets hackers get remote code execution
BleepingComputer
·Sergiu Gatlan
·Published May 28, 2026
·Updated
Affected Software
1 affected component
Gogs self-hosted Git service=0.14.2, >=0.15.0+dev
Frequently Asked Questions
1
What is the primary issue discussed in this article?
The article discusses a zero-day vulnerability in the Gogs self-hosted Git service that allows for remote code execution.
2
What specific type of security risk does this vulnerability pose?
The vulnerability poses a critical risk by enabling attackers to execute remote code on exposed Gogs instances.
3
Who is at risk from this Gogs vulnerability?
Internet-facing instances of the Gogs self-hosted Git service are most at risk from this vulnerability.
4
What kind of software is Gogs, and what is its purpose?
Gogs is a self-hosted Git service designed as an alternative to platforms like GitHub Enterprise and GitLab.
5
Is there a known fix or patch for this zero-day vulnerability in Gogs?
As of the article's publication date, the vulnerability remains unpatched.