CTIPilot
AI-generated · no human review · verify critical claims against the linked source. how it works →

Gogs argument-injection RCE

trend · trend:gogs-unpatched-argument-injection-rce-rapid7-metasploit

Rapid7 publishes an unpatched Gogs argument-injection RCE together with a Metasploit module.

Coverage
2
1 about it · 1 mention · first 2026-05-29 → last 2026-06-20
Latest activity
2026-05-29
Rapid7 publishes unpatched Gogs argument-injection RCE with a Metasploit module; maintainer non-responsive
Peak priority
high
1 high
Targets
public-sector
sectors: public-sector, education, technology · regions: europe, switzerland
Sources cited
12
8 hosts

Story timeline

Every entry that names Gogs argument-injection RCE, newest first. Rows tagged mention only name it in passing: they are listed for completeness and add nothing to the action items, pivots or ATT&CK profile on this page.

  1. 2026-06-20CVE-2026-52806, Gogs self-hosted Git server: argument injection to OS command execution (BSI critical batch)
    mentiontrending-vulnerabilities
  2. 2026-05-29Rapid7 publishes unpatched Gogs argument-injection RCE with a Metasploit module; maintainer non-responsive
    active-threats

Entries about Gogs argument-injection RCE (1)

2026-05-29 · view entry permalink →

HIGH

Rapid7 publishes unpatched Gogs argument-injection RCE with a Metasploit module; maintainer non-responsive

Rapid7 Labs disclosed on 2026-05-28 an authenticated-RCE zero-day in Gogs, the open-source self-hosted Git service. The root cause is in the Merge() function inside internal/database/pull.go: when the "Rebase before merging" strategy is invoked on a pull request, Gogs passes the source-branch name unsanitised to process.ExecDir, bypassing the safer git-module wrappers. An attacker creates a branch named e.g. --exec=<command>; when git rebase runs, that flag is interpreted as a --exec argument and the command executes under the Gogs service account. Affected: Gogs 0.14.2 and 0.15.0+dev (commit b53d3162); all prior versions that support the rebase-merge strategy are likely affected too. The maintainer acknowledged the report on 2026-03-28 (reported 2026-03-17) but has not shipped a fix; Rapid7 published after the standard 90-day window expired. Rapid7 also released a full Metasploit module covering Windows and Linux targets. Shodan shows ~1,141 internet-facing Gogs instances. Class is CWE-88 argument injection, same technique family as CVE-2024-39930 / 39932 / 39933 in prior Gogs disclosures. The Hacker News writeup corroborates and adds that no admin privileges are required, only account creation and repository access.

Why it matters to us: Self-hosted Gogs is common in European public-sector code and research infrastructure as a lightweight GitHub alternative. Until a patched fork (Gitea / Forgejo) is adopted, set DISABLE_REGISTRATION = true in app.ini, disable the Rebase before merging strategy under instance settings, and watch for git child processes carrying --exec under the Gogs binary's process tree (Sysmon EID 1 / auditd EXECVE).

An authenticated Gogs user can achieve remote code execution on the underlying server by exploiting an argument injection vulnerability

Rapid7 Research

The flaw exploits argument injection in the git rebase command during merge operations by injecting the --exec flag. No admin privileges are required; attackers only need account creation and repository access

The Hacker News
threat29 May 05:00Zmulti-sourceOpen finding →

Co-occurring entities

Derived: referenced by the same focused operational entries (weekly summaries and report roundups don't count); ×N counts the shared entries.

Where this entity is cited

  • Threats1
  • Vulns1

Source distribution

  • attack.mitre.org5 (42%)
  • cisa.gov1 (8%)
  • github.com1 (8%)
  • heise.de1 (8%)
  • rapid7.com1 (8%)
  • thehackernews.com1 (8%)
  • threats.wiz.io1 (8%)
  • wid.cert-bund.de1 (8%)
All cited sources (12)