A critical remote code execution (RCE) vulnerability has been discovered in Gogs, the popular self-hosted Git service. The flaw enables any authenticated user to execute arbitrary code on the server, potentially leading to full system compromise.
According to security researchers, the vulnerability stems from improper input validation in the repository migration feature. An attacker can craft a malicious payload that, when processed by Gogs, triggers code execution with the privileges of the Gogs process.
All versions prior to the latest patch are affected. Users are urged to update immediately to the fixed release. No workarounds are available.
This RCE bug is rated critical due to its low attack complexity and the fact that only authentication is required, which many Gogs instances grant to registered users by default.