Vulnerabilities Gogs Zero-Day Exposes Servers to Remote Code Execution The critical-severity issue, assigned a CVSS score of 9.4, is an argument injection flaw that can be exploited by authenticated attackers via pull requests with malicious branch names. By Ionut Arghire | May 29, 2026 (8:59 AM ET) Flipboard Reddit Whatsapp Whatsapp Email The popular open source self-hosted Git service Gogs is affected by a critical-severity zero-day vulnerability that exposes servers to remote code execution (RCE), Rapid7 reports. The critical-severity issue, assigned a CVSS score of 9.4, is an argument injection flaw that can be exploited by authenticated attackers via pull requests with malicious branch names. In a technical report, Rapid7 explains that the pull requests inject “the –exec flag into git rebase during the ‘Rebase before merging’ merge operation”, leading to command execution with the privileges of the Gogs server process user. “A standard merge creates a merge commit joining two branch histories. A rebase before merge replays the head branch’s commits on top of the base branch to produce a linear history,” Rapid7 explains. While the ‘Rebase before merging’ operation is not enabled by default, any repository owner or administrator can enable it, and any registered user automatically becomes the owner of repositories they create. During rebase, the merge function passes the pull request’s base branch name to the git rebase function without preventing the interpretation of subsequent arguments as flags. Advertisement. Scroll to continue reading. Insufficient checks and sanitization against argument injection and the fact that git rebase accepts the –exec flag, which tells Gogs to run a shell command after replaying each commit, allows attackers to include malicious arguments in branch names, which will be executed after each replayed commit. According to Rapid7, the vulnerability can be exploited without user interaction, as the attacker operates en
Back to Home

Gogs Zero-Day Exposes Servers to Remote Code Execution
B
Blizine Admin
·1 min read·0 views
📰SecurityWeek — securityweek.com
B
Blizine Admin
View Profile Staff Writer
Related Articles
‘.hack//Sign’ Still Hits as an Existential Gaming Anime About the Virtues of Logging Off
May 29, 2026·2 min read
No fix yet for critical RCE bug in open-source Git service Gogs - exploit module is out
May 29, 2026·2 min read
ChatGPT share links abused to host fake outage pages to deliver malware
May 29, 2026·2 min read