• News/
  • bleepingcomputer-20260528142543

New Gogs zero-day flaw lets hackers get remote code execution

BleepingComputer
·
Sergiu Gatlan
·
Published May 28, 2026
·
Updated

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...

Read full article

Affected Software

1 affected component
Gogs self-hosted Git service=0.14.2, >=0.15.0+dev
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203