CVE-2026-52806: Gogs is an open source self-hosted Git service
CVE-2026-52806 is a critical-severity flaw (CVSS 9.9) affecting affected software. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Gogs is an open source self-hosted Git service. Prior to 0.14.3, Gogs allows authenticated users to achieve Remote Code Execution (RCE) on the server by creating a pull request with a specially crafted branch name that injects the --exec flag into the git rebase command during the "Rebase before merging" merge operation. This vulnerability is fixed in 0.14.3.
Why this priority
- Critical severity
- EPSS top 5%: very likely to be exploited
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.9 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 7.9% (top 5%) |
| CISA exploited list | No |
| Weakness | CWE-77 |
| Published | 2026-06-24 |
| Last modified | 2026-06-26 |
Last updated 2026-06-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: portbuster1337/CVE-2026-52806 (7 stars)
- Write-up: github.com/gogs/gogs/security/advisories/GHSA-qf6p-p7ww-cwr9
- Metasploit: Gogs Git Rebase Argument Injection RCE
- Nuclei scan template: Gogs <= 0.14.2 - Authenticated RCE via git rebase Argument Injection
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-52806?
No fixed release is listed yet. Watch the vendor advisory and apply any mitigation shown on this page.
Is CVE-2026-52806 being exploited?
CVE-2026-52806 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-52806 affect?
CVE-2026-52806 affects affected software. Severity is critical (CVSS 9.9). Gogs is an open source self-hosted Git service. Prior to 0.14.3, Gogs allows authenticated users to achieve Remote Code Execution (RCE) on the server by creating a pull request with a specially crafted branch name that injects the --exec fl
How urgent is CVE-2026-52806?
Priority 63/100. Critical severity; EPSS top 5%: very likely to be exploited; Public exploit reference