Gogs
Gogs: RCE via git rebase --exec argument injection in pull request merge
Gogs is an open source self-hosted Git service. Prior to 0.14.3, Gogs allows authenticated users to achieve Remote Code Execution (RCE) on the server by creating a pull request with a specially crafted branch name that injects the --exec flag into the git rebase command during the "Rebase before merging" merge operation. This vulnerability is fixed in 0.14.3.
First public PoC
16 daysafter publication · 10 Jul 2026 · Metasploit
Public PoCs20 on GitHub · 2 Exploit-DB, Metasploit or nuclei
CVSS9.9critical · scored by CNA · CWE-77
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
gogs gogs
- < 0.14.3
Fixed in 0.14.3
Mitigation
Upgrade gogs to 0.14.3 or later.
References
- Vendor advisory github.com/gogs/gogs/security/advisories/GHSA-…
- Patch github.com/gogs/gogs/pull/8301
- Patch github.com/gogs/gogs/commit/a9dbafbfd8e1020bac…
1 more
- Release notes github.com/gogs/gogs/releases/tag/v0.14.3
Timeline
Days relative to CVE publicationFirst public PoC 16 days after publication; not in CISA KEV. First PoC: Metasploit exploit: Gogs Git Rebase Argument Injection RCE (exploit/multi/http/gogs_rebase_rce) (Metasploit, 10 Jul 2026).
PoC repositories
Found on GitHub.No PoC repositories found yet.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit exploit: Gogs Git Rebase Argument Injection RCE (exploit/multi/http/gogs_rebase_rce) | 10 Jul 2026 | 14 Nov 2026 |
| nuclei template | nuclei template: Gogs <= 0.14.2 - Authenticated RCE via git rebase Argument Injection | 17 Aug 2026 | 14 Nov 2026 |