Gogs patches critical zero-day enabling remote code execution
Gogs has patched a critical zero-day that could let authenticated attackers run code, read private repos, steal credentials, and alter source code.
Intelligence analysis by GPT-5.4 Mini

The zero-day hit Gogs, a self-hosted Git platform often exposed on the internet. Rapid7 says default settings made exploitation easier, and maintainers shipped 0.14.3 plus asked for a CVE after public disclosure.
Gogs found a bad loophole in its code, like a door that looked locked but could still be opened by the wrong person. If a hacker got in, they could look at secret files, change code, and cause trouble on other computers too.
Analysis
What happened
Gogs released version 0.14.3 to fix a critical argument-injection flaw that can lead to remote code execution. The issue had not yet been assigned a CVE at the time of publication, and it affects releases up to and including 0.14.2 and 0.15.0+dev.
According to the article, exploitation requires an authenticated user without admin privileges, but that still leaves a broad attack surface. Rapid7 researcher Jonah Burgess said the default configuration makes the flaw especially dangerous because open registration is enabled and repository creation is unrestricted by default. In that setup, an attacker can create an account, create a repository, and then use the exploit chain without needing help from another user.
Impact and response
If exploited, the vulnerability can let an attacker compromise the server, read repositories including private ones, steal credentials, move laterally across the network, and modify hosted source code. Rapid7 recommended immediate upgrading and said the fix was delivered through pull request #8301.
For teams that cannot patch right away, Rapid7 listed mitigations: disable user registration, limit repository creation, and review whether rebase-before-merging is enabled. The article notes that rebase settings alone are not a reliable defense if an attacker owns or has admin access to a repository.
Shadowserver currently tracks more than 2,300 internet-exposed Gogs servers, with most in Asia and Europe, which underlines how many deployments may be reachable from the public internet. The article also frames this flaw as similar to earlier Gogs argument-injection bugs, but in a different code path that had not been fixed before.
Key points
- Gogs patched a critical zero-day in version 0.14.3.
- The flaw can lead to remote code execution on affected servers.
- Attackers need authenticated access, but default settings can make that easy to obtain.
- Exploitation can expose private repositories, credentials, and source code.
- Rapid7 urged immediate upgrades and listed temporary mitigations.
If operators upgrade quickly, the patched version should close the attack path before it is widely abused. The suggested mitigations also give exposed deployments a practical way to reduce risk while they work toward updating.
If servers stay on older versions, attackers who can create an account may still exploit the flaw and reach private code or credentials. The article’s note about permissive defaults means exposed instances could remain easy targets even without admin access.



