{"id":466622,"date":"2026-05-29T19:27:09","date_gmt":"2026-05-29T19:27:09","guid":{"rendered":"https:\/\/www.newsbeep.com\/il\/466622\/"},"modified":"2026-05-29T19:27:09","modified_gmt":"2026-05-29T19:27:09","slug":"no-fix-yet-for-critical-gogs-rce-bug","status":"publish","type":"post","link":"https:\/\/www.newsbeep.com\/il\/466622\/","title":{"rendered":"No fix yet for critical Gogs RCE bug"},"content":{"rendered":"<p class=\"kicker \" style=\"\">Security<\/p>\n<p class=\"subtitle \" style=\"\">Researcher reported the vuln in March. Maintainers haven&#8217;t responded to his messages since<\/p>\n<p>There&#8217;s a huge hole and no one is patching it thus far. A critical, remote code execution (RCE) bug in Gogs, a popular open-source self-hosted Git service, can be exploited by any authenticated user &#8211; no special privileges required &#8211; on a default installation to fully compromise vulnerable servers, steal credentials and multi-factor authentication secrets, or even modify code in hosted repositories in a wide-reaching <a href=\"https:\/\/www.theregister.com\/cyber-crime\/2026\/05\/27\/crowdstrike-google-shatter-glassworm-botnet\/5247337\" rel=\"nofollow noopener\" target=\"_blank\">supply-chain attack<\/a>.<\/p>\n<p>A security researcher reported the 9.4-rated flaw to project maintainers in mid-March. It still doesn\u2019t have a patch. It does, however, have a public Metasploit module &#8211; so we\u2019d expect reports of in-the-wild exploitation to start very soon.<\/p>\n<p>The vulnerability affects all supported platforms, including Windows, Linux, and macOS, and installation methods, according to Rapid7 researcher Jonah Burgess, who <a href=\"https:\/\/www.rapid7.com\/blog\/post\/ve-authenticated-rce-via-argument-injection-gogs-unfixed\/\" rel=\"nofollow noopener\" target=\"_blank\">found and reported the bug<\/a> to Gogs maintainers via GitHub (GHSA-qf6p-p7ww-cwr9) on March 17. <\/p>\n<p>After they initially acknowledged that they received the report on March 28, Burgess says he never heard back from the Gogs team &#8211; not when he asked them for a status update, nor when he reminded them of the vulnerability disclosure date and asked if they wanted an extension to fix the flaw before its release.<\/p>\n<p>\u201cWe have not received any further communication from Gogs, and the GHSA has remained unanswered since March 28,\u201d Burgess told The Register. \u201cBecause there is currently no official patch, our team submitted a pull request with a suggested fix today [Friday], which is currently awaiting review. At this time, we have no evidence suggesting that this vulnerability is being exploited in the wild.\u201d<\/p>\n<p>Gogs sponsor DigitalOcean also did not respond to The Register\u2019s inquiries, including when the security issue would receive a patch.<\/p>\n<p>The vulnerability stems from an argument injection flaw in Gogs\u2019 pull request merge flow, specifically the Merge() function in internal\/database\/pull.go.\u00a0<\/p>\n<p>If a Gogs repo owner or admin enables &#8220;Rebase before merging&#8221; and a user opens a pull request, the PR&#8217;s base branch name gets passed directly to a\u00a0git rebase\u00a0command without a\u00a0&#8212;\u00a0separator to mark the end of command options. Gogs also fails to properly sanitize the input.<\/p>\n<p>This means an attacker can create a malicious branch (such as &#8211;exec=touch${IFS}\/tmp\/rce_proof), and Git treats it as an &#8211;exec flag, not a branch name, and executes the payload.<\/p>\n<p>For Windows installations, the payload delivery method is slightly different, and Burgess developed an <a href=\"https:\/\/github.com\/rapid7\/metasploit-framework\/pull\/21515\" rel=\"nofollow noopener\" target=\"_blank\">exploit module<\/a> to auto-implement a cross-platform approach.<\/p>\n<p>Until the maintainers fix the flaw, Burgess suggests Gogs\u2019 users take the following precautions to mitigate the issue.<\/p>\n<p>First, and most importantly, restrict user registration (DISABLE_REGISTRATION = true in app.ini) to prevent untrusted users from creating accounts.\u00a0<\/p>\n<p>Restricting repository creation (MAX_CREATION_LIMIT = 0 in app.ini) to prevent users from creating their own repos also blocks the easiest attack path &#8211; creating a new repo with rebase enabled &#8211; but it won\u2019t prevent exploitation by users with write access to existing repositories.<\/p>\n<p>Finally, audit rebase merge settings, and disable \u201cRebase before merging&#8221; under Settings &gt; Advanced. \u201cNote that this is not an effective defense against a malicious user who owns or has admin access to a repo, since they can re-enable rebase at will,\u201d the threat hunter warns. \u201cThere is no global or organization-level setting to restrict this.\u201d\u00a0\u00ae<\/p>\n","protected":false},"excerpt":{"rendered":"Security Researcher reported the vuln in March. Maintainers haven&#8217;t responded to his messages since There&#8217;s a huge hole&hellip;\n","protected":false},"author":2,"featured_media":466623,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[85,46,125],"class_list":["post-466622","post","type-post","status-publish","format-standard","has-post-thumbnail","category-technology","tag-il","tag-israel","tag-technology"],"_links":{"self":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/posts\/466622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/comments?post=466622"}],"version-history":[{"count":0,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/posts\/466622\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/media\/466623"}],"wp:attachment":[{"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/media?parent=466622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/categories?post=466622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newsbeep.com\/il\/wp-json\/wp\/v2\/tags?post=466622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}