Skip to main content
Mallory
← Back to News
internet-facing-service-vulnerabilityoffensive-tooling-releaseproof-of-concept-releaseweaponized-exploit-availability

Unpatched Gogs Argument Injection Flaw Enables Authenticated RCE

Vulnerability Disclosure · 11 sources · Updated 5mo ago · First seen May 28, 2026

Unpatched Gogs Argument Injection Flaw Enables Authenticated RCE

Rapid7 and BleepingComputer reported an unpatched zero-day in the self-hosted Git service Gogs that allows authenticated remote code execution through argument injection in the pull request rebase workflow. The flaw affects current releases including 0.14.2 and 0.15.0+dev, and likely earlier versions that support rebase merging. An attacker can abuse the "Rebase before merging" feature by supplying a malicious branch name that is passed into a git rebase command without a proper option separator, enabling use of Git's --exec flag to run attacker-controlled shell commands as the Gogs server process user.

The issue is rated CVSSv4 9.4 and is considered especially dangerous on default-configured instances because open registration and unrestricted repository creation are enabled by default, lowering the barrier to exploitation. Successful attacks could expose private repositories, stored credentials, and secrets, enable code tampering and supply-chain compromise, and support lateral movement deeper into victim networks. Rapid7 said no vendor patch was available at publication time and released a Metasploit module for Linux and Windows, while separate reporting noted Gogs maintainers had only acknowledged the report. The disclosures follow broader scrutiny of Git hosting platforms, including a recently disclosed Gitea flaw, CVE-2026-27771, that can expose private container images without authentication on versions prior to 1.26.2.

Why it matters

Impact assessment

Gogs deployments are exposed to critical authenticated remote code execution that can often be reached by unauthenticated internet users on default configurations because self-registration and unrestricted repository creation are enabled by default. The most affected populations are organizations running self-hosted Gogs for software development, especially internet-facing shared instances and multi-tenant environments across Asia and Europe.

The impact is severe: successful exploitation can compromise the Gogs host, expose all repositories including private code, leak password hashes, API tokens, SSH keys, and MFA secrets, and enable source-code tampering and downstream supply-chain compromise. Exposure is broad rather than narrowly targeted, with reporting citing roughly 1,100 Shodan-visible instances and more than 2,300-2,400 internet-exposed Gogs servers tracked by Shadowserver.

At initial disclosure there was no vendor patch and a public Metasploit module lowered exploitation barriers; later reporting states Gogs patched the flaw in version 0.14.3 on 2026-06-07. There is no confirmed exploitation in the wild for this specific flaw in the provided reporting, but prior Gogs RCE CVE-2025-8110 was actively exploited, which raises urgency.

Supporting facts

  • Affected product: Gogs self-hosted Git service.
  • Affected versions: all releases up to and including 0.14.2 and 0.15.0+dev; earlier versions supporting rebase merging are likely vulnerable.
  • Fixed version: 0.14.3.
  • Affected platforms: Linux, Windows, and macOS; binaries, Docker, and source deployments.
  • Exposure estimates:
    • Shodan: about 1,000-1,141 internet-facing instances.
    • Shadowserver: more than 2,300-2,400 exposed servers.
    • Regional concentration: most exposed systems reported in Asia and Europe.
  • Business consequences:
    • Private repository disclosure
    • Credential and secret theft
    • Cross-tenant data exposure on shared instances
    • Lateral movement from the Gogs host
    • Source-code tampering and supply-chain risk
  • Exploitation status:
    • Public exploit available via Metasploit.
    • No confirmed in-the-wild exploitation of this specific flaw in the cited reporting.
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

6 events · Mar 17, 2026 – Jun 7, 2026
  1. Jun 7, 20266mo ago

    Gogs patched critical authenticated RCE in version 0.14.3

    Gogs released version 0.14.3 on June 7, 2026 to patch the critical argument injection remote code execution flaw previously disclosed by Rapid7. The patch addressed the vulnerability affecting releases up to and including 0.14.2 and 0.15.0+dev.

    Gogs patches critical zero-day enabling remote code execution
  2. May 29, 20266mo ago

    Rapid7 submitted proposed fix for unpatched Gogs RCE

    With no official vendor patch available, Rapid7 submitted a pull request containing a proposed fix for the authenticated Gogs RCE vulnerability. The company also recommended mitigations including disabling registration, restricting repository creation, and turning off 'Rebase before merging.'

    No fix yet for critical Gogs RCE bug - exploit module is out
  3. May 28, 20266mo ago

    Rapid7 disclosed unpatched Gogs RCE and released Metasploit module

    Rapid7 publicly disclosed a critical authenticated remote code execution vulnerability in Gogs caused by argument injection in the 'Rebase before merging' feature. The company said the flaw affects Gogs 0.14.2 and 0.15.0+dev, released a Metasploit module for Linux and Windows exploitation, and noted no vendor patch was available at publication time.

    Authenticated RCE via Argument Injection in Gogs (NOT FIXED)
  4. May 28, 20266mo ago

    Rapid7 reported Gogs authenticated RCE flaw to maintainers

    BleepingComputer reports that Rapid7 researcher Jonah Burges reported the Gogs argument injection vulnerability to the maintainers in March. The maintainers had only acknowledged the report and had not issued a patch or further response by the time of publication.

    New Gogs zero-day flaw lets hackers get remote code execution
  5. May 27, 20266mo ago

    Gitea private image exposure flaw disclosed with patch guidance

    Researchers disclosed CVE-2026-27771 in Gitea, an unauthenticated flaw that allows pulling private container images from affected deployments. The disclosure said all versions prior to 1.26.2 are affected and advised upgrading to 1.26.2 or enabling REQUIRE_SIGNIN_VIEW as a workaround.

    Gitea Vulnerability Exposes Private Container Images without Authentication
  6. Mar 17, 20269mo ago

    Rapid7 reported Gogs RCE flaw to maintainer

    Rapid7 reported the authenticated Gogs remote code execution vulnerability to the maintainer on March 17, 2026. The flaw involved argument injection via the 'Rebase before merging' feature and remained unpatched at the time of later public disclosure.

    Critical Gogs RCE Vulnerability Lets Any Authenticated User Execute Arbitrary Code
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Affected products

1 linked
Gogs

Organizations

1 linked
Gogs

Observables

1 linked

Indicator values are masked on this page. See the values in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.