top of page
perceptive_background_267k.jpg

New Gogs zero-day flaw lets hackers get remote code execution

Published:

28 mei 2026 om 14:25:43

Alert date:

28 mei 2026 om 15:02:45

Source:

bleepingcomputer.com

Click to open the original link from this advisory

Web Technologies, Zero-Day Vulnerabilities, Enterprise Applications

A new unpatched zero-day vulnerability has been discovered in Gogs, a self-hosted Git service. The flaw allows attackers to achieve remote code execution (RCE) on Internet-facing instances of the service. This represents a critical security risk for organizations using Gogs for version control, as attackers can potentially gain complete control over affected systems. The vulnerability affects self-hosted Git repositories and could lead to code theft, system compromise, and lateral movement within networks.

Technical details

Critical severity argument injection vulnerability in Gogs self-hosted Git service affecting versions 0.14.2 and 0.15.0+dev. Exploitable by authenticated attackers without admin privileges through pull requests using malicious branch names to inject the '--exec' flag into git rebase during 'Rebase before merging' operations. Default configuration allows open registration and unlimited repository creation, enabling unauthenticated attackers to create accounts and exploit the vulnerability. Similar to previously patched argument injection flaws but affects a different code path (Merge()) that was never patched.

Mitigation steps:

Monitor for over 2,400 Gogs servers exposed online according to Shadowserver tracking. Disable open registration (set DISABLE_REGISTRATION = true) and limit repository creation (adjust MAX_CREATION_LIMIT). Watch for malicious branch names in pull requests attempting to inject git rebase arguments. Apply patches when available. Federal agencies must secure servers by February 2 as ordered by CISA.

Affected products:

Gogs 0.14.2
Gogs 0.15.0+dev

Related links:

Related CVE's:

Related threat actors:

IOC's:

This article was created with the assistance of AI technology by Perceptive.

© 2025 by Perceptive Security. All rights reserved.

email: info@perceptivesecurity.com

Deze website toont informatie afkomstig van externe bronnen; Perceptive aanvaardt geen verantwoordelijkheid voor de juistheid, volledigheid of actualiteit van deze informatie.

bottom of page